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

Version Path
dragonfly_puppeteer-0.1.0 node_modules/object-keys/isArguments.js
lanes-0.8.0 node_modules/object-keys/isArguments.js
brwy_rails-0.0.6 test/dummy/node_modules/object-keys/isArguments.js
brwy_rails-0.0.5 test/dummy/node_modules/object-keys/isArguments.js
brwy_rails-0.0.4 test/dummy/node_modules/object-keys/isArguments.js
brwy_rails-0.0.3 test/dummy/node_modules/object-keys/isArguments.js
brwy_rails-0.0.2 test/dummy/node_modules/object-keys/isArguments.js
brwy_rails-0.0.1 test/dummy/node_modules/object-keys/isArguments.js