Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2016년 9월.
Array 인스턴스의 find() 메서드는 제공된 형식화 배열에서 제공된 테스트 함수를 만족하는 첫 번째 요소를 반환합니다. 테스트 함수를 만족하는 값이 없으면 undefined가 반환됩니다. 이 메서드는 Array.prototype.find()와 동일한 알고리즘을 가집니다.
형식화 배열의 각 요소에 대해 실행할 함수입니다. 일치하는 요소를 찾았으면 참 같은 값을 반환하고, 그렇지 않으면 거짓 같은 값을 반환해야 합니다. 함수는 다음 인수를 사용하여 호출됩니다.
element형식화 배열에서 현재 처리되고 있는 요소.
index형식화 배열에서 현재 처리되고 있는 요소의 인덱스.
arrayfind()가 호출된 형식화 배열.
thisArg OptionalcallbackFn을 실행할 때 this로 사용할 값입니다. 순회 메서드를 참고하시기 바랍니다.
제공된 테스트 함수를 만족하는 형식화 배열의 첫 번째 요소입니다. 테스트 함수를 만족하는 요소가 없으면, undefined가 반환됩니다.
보다 자세한 정보는 Array.prototype.find()를 참고하시기 바랍니다. 이 메서드는 범용적이지 않으며 오직 형식화 배열 인스턴스에서만 호출할 수 있습니다.
다음 예제는 형식화 배열의 요소 중 소수인 요소를 찾습니다(소수가 없는 경우에는 undefined를 반환합니다).
| ECMAScript® 2027 Language Specification # sec-%typedarray%.prototype.find |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025년 2월 11일 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.