Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-arguments

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-arguments - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

6

CHANGELOG.md

@@ -1,3 +0,7 @@

1.0.3 / 2015-09-21
1.0.4 / 2018-11-05
==================
* [Fix] Fix errors about `in` operator (#22)
1.0.3 / 2018-11-02
==================
* [Fix] add awareness of Symbol.toStringTag (#20)

@@ -4,0 +8,0 @@ * [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape`, `jscs`, `nsp`

2

index.js

@@ -7,3 +7,3 @@ 'use strict';

var isStandardArguments = function isArguments(value) {
if (hasToStringTag && value && Symbol.toStringTag in value) {
if (hasToStringTag && value && typeof value === 'object' && Symbol.toStringTag in value) {
return false;

@@ -10,0 +10,0 @@ }

{
"name": "is-arguments",
"version": "1.0.3",
"version": "1.0.4",
"description": "Is this an arguments object? It's a harder question than you think.",

@@ -5,0 +5,0 @@ "author": {

@@ -10,3 +10,4 @@ 'use strict';

t.notOk(isArguments({}), 'object is not arguments');
t.notOk(isArguments(''), 'string is not arguments');
t.notOk(isArguments(''), 'empty string is not arguments');
t.notOk(isArguments('foo'), 'string is not arguments');
t.notOk(isArguments({ length: 2 }), 'naive array-like is not arguments');

@@ -13,0 +14,0 @@ t.end();

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc