Socket
Socket
Sign inDemoInstall

is-arguments

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

.eslintrc

19

index.js

@@ -5,13 +5,12 @@ var toString = Object.prototype.toString;

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 isArgs = str === '[object Arguments]';
if (!isArgs) {
isArgs = str !== '[object Array]' &&
value !== null &&
typeof value === 'object' &&
typeof value.length === 'number' &&
value.length >= 0 &&
toString.call(value.callee) === '[object Function]';
}
return isArguments;
return isArgs;
};
{
"name": "is-arguments",
"version": "1.0.0",
"version": "1.0.1",
"description": "Is this an arguments object? It's a harder question than you think.",

@@ -9,5 +9,8 @@ "author": "Jordan Harband",

"scripts": {
"test": "node test.js && npm run coverage-quiet",
"test": "npm run lint && node test.js && npm run coverage-quiet",
"coverage": "covert test.js",
"coverage-quiet": "covert test.js --quiet"
"coverage-quiet": "covert test.js --quiet",
"lint": "npm run jscs && npm run eslint",
"jscs": "jscs *.js",
"eslint": "eslint *.js"
},

@@ -32,4 +35,6 @@ "repository": {

"devDependencies": {
"tape": "~2.3.2",
"covert": "~0.3.0"
"tape": "^4.0.0",
"covert": "^1.0.1",
"jscs": "^1.13.0",
"eslint": "^0.20.0"
},

@@ -36,0 +41,0 @@ "testling": {

#is-arguments <sup>[![Version Badge][2]][1]</sup>
[![Build Status][3]][4] [![dependency status][5]][6] [![dev dependency status][7]][8]
[![Build Status][3]][4]
[![dependency status][5]][6]
[![dev dependency status][7]][8]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
[![npm badge][13]][1]
[![npm badge][11]][1]

@@ -29,13 +33,15 @@ [![browser support][9]][10]

[2]: http://vb.teelaun.ch/ljharb/is-arguments.svg
[3]: https://travis-ci.org/ljharb/is-arguments.png
[3]: https://travis-ci.org/ljharb/is-arguments.svg
[4]: https://travis-ci.org/ljharb/is-arguments
[5]: https://david-dm.org/ljharb/is-arguments.png
[5]: https://david-dm.org/ljharb/is-arguments.svg
[6]: https://david-dm.org/ljharb/is-arguments
[7]: https://david-dm.org/ljharb/is-arguments/dev-status.png
[7]: https://david-dm.org/ljharb/is-arguments/dev-status.svg
[8]: https://david-dm.org/ljharb/is-arguments#info=devDependencies
[9]: https://ci.testling.com/ljharb/is-arguments.png
[10]: https://ci.testling.com/ljharb/is-arguments
[11]: https://github.com/es-shims/es5-shim/blob/master/es5-shim.js#L542-589
[12]: https://github.com/bestiejs/lodash
[13]: https://nodei.co/npm/is-arguments.png?downloads=true&stars=true
[11]: https://nodei.co/npm/is-arguments.png?downloads=true&stars=true
[license-image]: http://img.shields.io/npm/l/is-arguments.svg
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/is-arguments.svg
[downloads-url]: http://npm-stat.com/charts.html?package=is-arguments

@@ -26,2 +26,1 @@ var test = require('tape');

});

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc