Socket
Socket
Sign inDemoInstall

es6-array-extras

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es6-array-extras - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

2

package.json
{
"name": "es6-array-extras",
"description": "Correct implementations for Array.of and Array.from",
"version": "0.1.5",
"version": "0.1.6",
"homepage": "https://github.com/rwldrn/es6-array-extras",

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

@@ -42,7 +42,15 @@ # ES6 Array Extras

new Array(10);
// [ , , , , , , , , , , ]
```
If you replace that by using `Array.of()`, you avoid this "gotcha".
If you replace that by using `Array.of()`, you avoid this "gotcha":
```js
Array.of(10);
// [ 10 ]
```
Basic usage matches existing `Array` constructor:

@@ -49,0 +57,0 @@

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