object-to-array2
v1.0.0
Published
Simple module for push object to a array
Downloads
3
Maintainers
Readme
obj_to_arr
A simple Object or Json converter to the array
Installation
npm install object-to-array2
Usage
let {obj_to_arr} = require('object-to-array2');
let a={"st":{"1":{"1n2":{"in3":{"yy":20}}},"name":"Tom"},"delays":{"1":28,"2":3},"lable":["value1","value2"]}
let obj=new obj_to_arr(a);
obj.doit().then((clbk)=>{
console.log(clbk);
}).catch((err)=>{
console.log(err);
});
Output should be [ 20, 'Tom', 28, 3, 'value1', 'value2' ]