reverse-iterable-array
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "reverse-iterable-array", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A reverse-iterable array implementation based on the built-in Array object", | ||
@@ -20,3 +20,4 @@ "main": "./src/reverse-iterable-array", | ||
"reverse-iterable", | ||
"iterable-iterator" | ||
"iterable", | ||
"iterator" | ||
], | ||
@@ -23,0 +24,0 @@ "author": { |
# reverse-iterable-array | ||
A reverse-iterable array implementation based on the built-in [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array) object. | ||
The `ReverseIterableArray` object is a reverse-iterable array implementation based on the built-in [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array) object. | ||
Links: | ||
- [**npmjs.com**/package/reverse-iterable-array](https://www.npmjs.com/package/reverse-iterable-array) | ||
- [**github.com**/kleinfreund/reverse-iterable-array](https://github.com/kleinfreund/reverse-iterable-array) | ||
- [kleinfreund.github.io/reverse-iterable-array](https://kleinfreund.github.io/reverse-iterable-array) | ||
See also: | ||
- `ReverseIterableMap`: [reverse-iterable-map](https://www.npmjs.com/package/reverse-iterable-map) | ||
- `ReverseIterableSet`: [reverse-iterable-set](https://www.npmjs.com/package/reverse-iterable-set) | ||
## Table of Contents | ||
@@ -97,11 +108,16 @@ | ||
```js | ||
const array = new ReverseIterableArray(); | ||
``` | ||
##### `Array` | ||
```js | ||
const array = new ReverseIterableArray([1, 2, 3]); | ||
``` | ||
for (const value of array.reverseIterator()) { | ||
console.log(value); | ||
} | ||
##### `NodeList` | ||
[...array.reverseIterator()] | ||
```js | ||
const array = new ReverseIterableArray(...document.querySelectorAll('div')); | ||
``` | ||
@@ -108,0 +124,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
33587
619
276