You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
일단 함수를 한 줄로 쓸 수 있기 때문에
f(x, g(x)) {
g(x)에 x를 넣어 연산 후 리턴
}
이때 x, g(x)를 묶음으로 여러개 정의해서 process하는 경우
처럼 함수를 다른 함수의 인자로 전달해야하는 경우 람다식을 종종 쓰게되는 것 같습니다. 젤 흔하게 쓰는 형태는 비교/정렬/필터 관련 함수에서 기본 정의 외에 사용자 설정이 필요한 경우 람다식을 인자로 넣으면 깔끔한? 느낌을 주는 것 같아요. 그래서 보통 JS기반 프론트 작업할 때 (특히 표UI 작업할때) 많이 쓰게되는 것 같네요.
Frontend UI/Menu using CommonUI - Studylog 2 | wirteNow
예술공학부 기반의 블로그 스터디 쥐깍쥐깍입니다.
https://writenow-at.github.io/posts/Sulfurman03/2025-c2-week2.html