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

array-tools

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-tools - npm Package Compare versions

Comparing version 1.8.1 to 1.8.2

2

lib/array-tools.js

@@ -202,3 +202,3 @@ "use strict";

return [];
} else if (t.isPlainObject(any) && any.length >= 0 && any.length === Math.floor(any.length)){
} else if (t.isArrayLike(any)){
return Array.prototype.slice.call(any);

@@ -205,0 +205,0 @@ } else {

{
"name": "array-tools",
"author": "Lloyd Brookes <75pound@gmail.com>",
"version": "1.8.1",
"version": "1.8.2",
"description": "Lightweight tool-kit for working with arrays",

@@ -39,4 +39,4 @@ "repository": "https://github.com/75lb/array-tools.git",

"object-tools": "^1.1.0",
"typical": "^2"
"typical": "^2.1"
}
}

@@ -10,5 +10,9 @@ "use strict";

t.deepEqual(a.arrayify([ 1, 2 ]), [ 1, 2 ]);
t.deepEqual(a.arrayify(arguments), [ t ]);
function func(){
t.deepEqual(a.arrayify(arguments), [ 1, 2, 3 ]);
}
func(1, 2, 3);
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