UNPKG

object-to-array2

Version:

Simple module for push object to a array

9 lines (8 loc) 268 B
let {obj_to_arr}=require("./index.js"); 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((y)=>{ console.log(y); }).catch((err)=>{ console.log(err); });