filter, map, every
Map








const add = (aaa, bbb) => {
return aaa + bbb
}
add(1, 2)
3
const add2 = (aaa, bbb) => (aaa + bbb)
const add3 = (aaa, bbb) => aaa + bbb
const classmates= [
{ name: "철수" },
{ name: "영희" },
{ name: "훈이" }
]
classmates.map((el) => { name: el.name + "어린이" })
(3) [undefined, undefined, undefined]
Filter

mapは既存の要素の数と同じである必要があります.
filterの場合、既存の要素の数以下である必要があります.これ以上はできない!

every
every:アレイ内のすべての要素が条件に合致しているかどうかを確認する方法.すべての要素が条件を満たす場合はtrueを返し、1つの要素が満たされない場合はfalseを返します.
使用方法
// 화살표 함수
every((element) => { ... } )
every((element, index) => { ... } )
every((element, index, array) => { ... } )
// 콜백 함수
every(callbackFn)
every(callbackFn, thisArg)
// 인라인 콜백 함수
every(function callbackFn(element) { ... })
every(function callbackFn(element, index) { ... })
every(function callbackFn(element, index, array){ ... })
every(function callbackFn(element, index, array) { ... }, thisArg)
Reference
この問題について(filter, map, every), 我々は、より多くの情報をここで見つけました https://velog.io/@hyeun427/filter-map-everyテキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol