Socket
Socket
Sign inDemoInstall

is-any-array

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 0.0.2 to 0.0.3

5

History.md

@@ -0,1 +1,6 @@

<a name="0.0.3"></a>
## [0.0.3](https://github.com/cheminfo-js/is-any-array/compare/v0.0.2...v0.0.3) (2018-10-26)
<a name="0.0.2"></a>

@@ -2,0 +7,0 @@ ## 0.0.2 (2018-10-26)

2

package.json
{
"name": "is-any-array",
"version": "0.0.2",
"version": "0.0.3",
"description": "Check if toString.call ends with Array",

@@ -5,0 +5,0 @@ "main": "./src/index.js",

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

expect(isAnyArray([])).toBe(true);
expect(isAnyArray([1, 2, 3])).toBe(true);
expect(isAnyArray(new Uint16Array(2))).toBe(true);
});
'use strict';
const toString = Object.prototype.toString;
function isAnyArray(object) {

@@ -4,0 +6,0 @@ return toString.call(object).endsWith('Array]');

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