To array for object or array like.
npm install -S @jswork/next-to-arrayimport '@jswork/next-to-array';
const obj = {
0: 'a',
1: 'b',
2: 'c'
};
nx.toArray(obj); //['a','b','c'];Code released under the MIT license.
| Name | Name | Last commit date | ||
|---|---|---|---|---|
To array for object or array like.
npm install -S @jswork/next-to-arrayimport '@jswork/next-to-array';
const obj = {
0: 'a',
1: 'b',
2: 'c'
};
nx.toArray(obj); //['a','b','c'];Code released under the MIT license.