list of list of objects to list of objects javascr code example Example: how to crate a list in java script var list = [1 ,2 ,"apple",true];