es6-array-extras
Advanced tools
Comparing version 0.1.5 to 0.1.6
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11889
117