get item from array in javascript code example
Example 1: how to get element of an array in javascript
var value = [a,b,c,d];
var value_b = value[1];
Example 2: javascript find object in array
myArray.findIndex(x => x.id === '45');
var value = [a,b,c,d];
var value_b = value[1];
myArray.findIndex(x => x.id === '45');