I have array of object
[{id: 1, options[{...}]}, {id:2, options[{...}] }, {id: 3, options[{...}]
How I can create new object filtered by id for example. (using javascript)
singleObject = {id:2, options[{...}]}
I have array of object
[{id: 1, options[{...}]}, {id:2, options[{...}] }, {id: 3, options[{...}]
How I can create new object filtered by id for example. (using javascript)
singleObject = {id:2, options[{...}]}