Answers for "find index number of aray from value"

0

Find the index of an item in the Array

fruits.push('Mango')
// ["Strawberry", "Banana", "Mango"]

let pos = fruits.indexOf('Banana')
// 1
Posted by: Guest on July-02-2021

Code answers related to "find index number of aray from value"

Code answers related to "Javascript"

Browse Popular Code Answers by Language