Package Exports
- arraylikeobj
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (arraylikeobj) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ArrayLike
Similar to a normal array, but without the functions.
const ArrayLike = require("arraylikeobj");
const arraylike1 = new ArrayLike("Hello", "World");
for (const element of arraylike1) {
console.log(element); /* Expected output: Hello
World */
}| Property / Method | Description | Returns | Is iterable |
|---|---|---|---|
| length | The length of the object. | number | false |
| entries() | An array of the keys and values of the object. | [number, type] (for every entry) | true |
| keys() | The keys of the object. | number (for every entry) | true |
| values() | The values of the object. | type (for every entry) | true |
| toString(separator?: string) | A string representation of the object, with the values joined by the separator. | string | false |
Inspired by Ecma.