https://github.com/afeiship/next-to-array
To array for object or array like.
https://github.com/afeiship/next-to-array
array next to-array
Last synced: about 1 month ago
JSON representation
To array for object or array like.
- Host: GitHub
- URL: https://github.com/afeiship/next-to-array
- Owner: afeiship
- License: mit
- Created: 2017-08-12T01:38:58.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-11-21T02:53:23.000Z (over 5 years ago)
- Last Synced: 2025-10-17T18:04:11.952Z (8 months ago)
- Topics: array, next, to-array
- Language: JavaScript
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-to-array
> To array for object or array like.
[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]
## installation
```bash
npm install -S @jswork/next-to-array
```
## usage
```js
import '@jswork/next-to-array';
const obj = {
0: 'a',
1: 'b',
2: 'c'
};
nx.toArray(obj); //['a','b','c'];
```
## license
Code released under [the MIT license](https://github.com/afeiship/next-to-array/blob/master/LICENSE.txt).
[version-image]: https://img.shields.io/npm/v/@jswork/next-to-array
[version-url]: https://npmjs.org/package/@jswork/next-to-array
[license-image]: https://img.shields.io/npm/l/@jswork/next-to-array
[license-url]: https://github.com/afeiship/next-to-array/blob/master/LICENSE.txt
[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-to-array
[size-url]: https://github.com/afeiship/next-to-array/blob/master/dist/next-to-array.min.js
[download-image]: https://img.shields.io/npm/dm/@jswork/next-to-array
[download-url]: https://www.npmjs.com/package/@jswork/next-to-array