From bbff7403fbf46f9ad92240ac213df8d30ef31b64 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 20 Sep 2018 02:56:13 +0200 Subject: update packages --- node_modules/object-keys/isArguments.js | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'node_modules/object-keys/isArguments.js') diff --git a/node_modules/object-keys/isArguments.js b/node_modules/object-keys/isArguments.js index 74a098978..f2a2a9014 100644 --- a/node_modules/object-keys/isArguments.js +++ b/node_modules/object-keys/isArguments.js @@ -1,16 +1,17 @@ -var toString = Object.prototype.toString; +'use strict'; + +var toStr = Object.prototype.toString; module.exports = function isArguments(value) { - var str = toString.call(value); - var isArguments = str === '[object Arguments]'; - if (!isArguments) { - isArguments = str !== '[object Array]' - && value !== null - && typeof value === 'object' - && typeof value.length === 'number' - && value.length >= 0 - && toString.call(value.callee) === '[object Function]'; + 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 isArguments; + return isArgs; }; - -- cgit v1.2.3