'use strict'; var toStr = Object.prototype.toString; module.exports = function isArguments(value) { var str = toStr.call(value); var isArgs = str === '[object Arguments]'; if (!isArgs) { isArgs = str !== '[object Array]' && value !== null && typeof value === 'object' && typeof value.length === 'number' && value.length >= 0 && toStr.call(value.callee) === '[object Function]'; } return isArgs; };
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
.editorconfig | File | 276 B | 0644 |
|
.jscs.json | File | 4.01 KB | 0644 |
|
.travis.yml | File | 6.58 KB | 0644 |
|
CHANGELOG.md | File | 6.97 KB | 0644 |
|
LICENSE | File | 1.05 KB | 0644 |
|
README.md | File | 2.4 KB | 0644 |
|
index.js | File | 3.49 KB | 0644 |
|
isArguments.js | File | 422 B | 0644 |
|
package.json | File | 2.13 KB | 0644 |
|