javascript select name base on id in array javascript code example Example: javascript get array object by id myArray.find(x => x.id === '45').foo;