find (1) 썸네일형 리스트형 배열 함수 find() find() 얘는 filter() 함수와 비슷한 친구입니다. 같은 점은 조건을 붙히면 그 조건에 맞는 아이를 필터해주는 것인데.. fliter() 는 조건에 맞는 아이를 모두 배열에 담아서 준다면 find() 는 조건에 맞는 아이 중 하나만 string 타입으로 줍니당. 배열로 주지 않아!!!!!!! 예시 봅시다. let names = [ "Steven Paul Jobs", "Bill Gates", "Mark Elliot Zuckerberg", "Elon Musk", "Jeff Bezos", "Warren Edward Buffett", "Larry Page", "Larry Ellison", "Tim Cook", "Lloyd Blankfein" ] let result1 = names.find((item) .. 이전 1 다음