Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript find index

const index = array.findIndex((param)=> param.name == "jimmy")
/* param will iterate on every value of the array looking for 
that one element that fits the criteria that is indicated in arrow function 
besides it */
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #find #index
ADD COMMENT
Topic
Name
4+1 =