Sha256: 31f36ded2784150b7480f56ca42e7fda6e119d4345d5884a4d5f55e13fe6ac30

Contents?: true

Size: 422 Bytes

Versions: 157

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

157 entries across 156 versions & 20 rubygems

Version Path
immosquare-cleaner-0.1.6 node_modules/object-keys/isArguments.js
decidim-0.26.8 packages/eslint-config/node_modules/object-keys/isArguments.js
disco_app-0.18.0 test/dummy/node_modules/object-keys/isArguments.js
disco_app-0.18.2 test/dummy/node_modules/object-keys/isArguments.js
disco_app-0.16.1 test/dummy/node_modules/object-keys/isArguments.js
disco_app-0.15.2 test/dummy/node_modules/object-keys/isArguments.js
disco_app-0.18.4 test/dummy/node_modules/object-keys/isArguments.js
disco_app-0.18.1 test/dummy/node_modules/object-keys/isArguments.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/object-keys/isArguments.js
disco_app-0.14.0 test/dummy/node_modules/object-keys/isArguments.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/object-keys/isArguments.js
tang-0.2.1 spec/tang_app/node_modules/object-keys/isArguments.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/object-keys/isArguments.js
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/object-keys/isArguments.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/object-keys/isArguments.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/object-keys/isArguments.js
tang-0.2.0 spec/tang_app/node_modules/object-keys/isArguments.js
tang-0.1.0 spec/tang_app/node_modules/object-keys/isArguments.js
tang-0.0.9 spec/tang_app/node_modules/object-keys/isArguments.js
enju_library-0.3.8 spec/dummy/node_modules/object-keys/isArguments.js