/
home
/
infinitibizsol
/
testingcrm.infinitibizsol.com
/
node_modules
/
is-arguments
/
File Upload :
llllll
Current File: /home/infinitibizsol/testingcrm.infinitibizsol.com/node_modules/is-arguments/index.js
'use strict'; var hasToStringTag = require('has-tostringtag/shams')(); var callBound = require('call-bound'); var $toString = callBound('Object.prototype.toString'); /** @type {import('.')} */ var isStandardArguments = function isArguments(value) { if ( hasToStringTag && value && typeof value === 'object' && Symbol.toStringTag in value ) { return false; } return $toString(value) === '[object Arguments]'; }; /** @type {import('.')} */ var isLegacyArguments = function isArguments(value) { if (isStandardArguments(value)) { return true; } return value !== null && typeof value === 'object' && 'length' in value && typeof value.length === 'number' && value.length >= 0 && $toString(value) !== '[object Array]' && 'callee' in value && $toString(value.callee) === '[object Function]'; }; var supportsStandardArguments = (function () { return isStandardArguments(arguments); }()); // @ts-expect-error TODO make this not error isStandardArguments.isLegacyArguments = isLegacyArguments; // for tests /** @type {import('.')} */ module.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
Copyright ©2k19 -
Hexid
|
Tex7ure