Sha256: 31f36ded2784150b7480f56ca42e7fda6e119d4345d5884a4d5f55e13fe6ac30
Contents?: true
Size: 422 Bytes
Versions: 148
Compression:
Stored size: 422 Bytes
Contents
'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; };
Version data entries
148 entries across 147 versions & 19 rubygems