JavaScript 표준 내장 객체 - Array(2)
findIndex const numbers = [17,20,199,5,48] const foundIndex = numbers.findIndex(item=>itemitem>100)) // 2 const users = [ {name:'A', age: 12, email:'123@456.789'}, {name:'B', age: 15, email:'987@654.321'}, {name:'C', age: 18}, ] console.log(users.findIndex(user=> !user.email))// 2 console.log(users.findIndex(user=> user.call))// -1 - 배열 내 아이템에 콜백 테스트를 실행하여 처음으로 통과하는 요소의 인덱스를 반환합니다. - 테스트 통과 후 이후..