JSFiddle - React, Tailwind, and code Playground

by eget teteete

JavaScript

let as = [23, 456, 78, 654, 45678765, 678, 87654567, 87654, 5678, 7654, 56, 4, 56, 54, 676, 54, 67, 65, 56, 43, 465789, 897, 6, 4];

let zx = as.findIndex(el => el ===54 );
console.log(zx)