|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
400 bytes
|
| Line | |
|---|
| 1 | import tagTester from './_tagTester.js';
|
|---|
| 2 | import has from './_has.js';
|
|---|
| 3 |
|
|---|
| 4 | var isArguments = tagTester('Arguments');
|
|---|
| 5 |
|
|---|
| 6 | // Define a fallback version of the method in browsers (ahem, IE < 9), where
|
|---|
| 7 | // there isn't any inspectable "Arguments" type.
|
|---|
| 8 | (function() {
|
|---|
| 9 | if (!isArguments(arguments)) {
|
|---|
| 10 | isArguments = function(obj) {
|
|---|
| 11 | return has(obj, 'callee');
|
|---|
| 12 | };
|
|---|
| 13 | }
|
|---|
| 14 | }());
|
|---|
| 15 |
|
|---|
| 16 | export default isArguments;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.