arnaucube
arnaucube/comunicationLeapPublic Self-hosted repository
comunicationLeap/node_modules/object-keys/isArguments.js
node_modules/object-keys/isArguments.jsRaw
 1"use strict";
 2
 3var toString = Object.prototype.toString;
 4
 5module.exports = function isArguments(value) {
 6	var str = toString.call(value);
 7	var isArguments = str === '[object Arguments]';
 8	if (!isArguments) {
 9		isArguments = str !== '[object Array]'
10			&& value !== null
11			&& typeof value === 'object'
12			&& typeof value.length === 'number'
13			&& value.length >= 0
14			&& toString.call(value.callee) === '[object Function]';
15	}
16	return isArguments;
17};
18