metode untuk mencari objek dalam array dengan id
//Lets say you have an array and you want to find "bar" for an object but you want to find that object by ID
myArray = [{'id':'73','foo':'bar'},{'id':'45','foo':'barrr'}]
//use find()
myArray.find(x => x.id === '45').foo; //returns 'barrr'
aretecore