Bump packages to fix linter
This commit is contained in:
parent
ed9506bbaf
commit
0a11e3fdd9
6063 changed files with 378752 additions and 306784 deletions
33
node_modules/is-arguments/index.js
generated
vendored
Normal file
33
node_modules/is-arguments/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
'use strict';
|
||||
|
||||
var hasToStringTag = require('has-tostringtag/shams')();
|
||||
var callBound = require('call-bind/callBound');
|
||||
|
||||
var $toString = callBound('Object.prototype.toString');
|
||||
|
||||
var isStandardArguments = function isArguments(value) {
|
||||
if (hasToStringTag && value && typeof value === 'object' && Symbol.toStringTag in value) {
|
||||
return false;
|
||||
}
|
||||
return $toString(value) === '[object Arguments]';
|
||||
};
|
||||
|
||||
var isLegacyArguments = function isArguments(value) {
|
||||
if (isStandardArguments(value)) {
|
||||
return true;
|
||||
}
|
||||
return value !== null &&
|
||||
typeof value === 'object' &&
|
||||
typeof value.length === 'number' &&
|
||||
value.length >= 0 &&
|
||||
$toString(value) !== '[object Array]' &&
|
||||
$toString(value.callee) === '[object Function]';
|
||||
};
|
||||
|
||||
var supportsStandardArguments = (function () {
|
||||
return isStandardArguments(arguments);
|
||||
}());
|
||||
|
||||
isStandardArguments.isLegacyArguments = isLegacyArguments; // for tests
|
||||
|
||||
module.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
|
||||
Loading…
Add table
Add a link
Reference in a new issue