js-tosorted-immutable
✓배열 변경을 방지하려면 sort() 대신 toSorted()를 사용하세요. React props, state 또는 다른 곳에서 공유/참조되는 배열을 정렬할 때 적용합니다.
SKILL.md
.sort() mutates the array in place, which can cause bugs with React Use .toSorted() to create a new sorted array without state and props. mutation.
.toSorted() is available in all modern browsers (Chrome 110+, Safari 16+, Firefox 115+, Node.js 20+). For older environments, use spread operator:
배열 변경을 방지하려면 sort() 대신 toSorted()를 사용하세요. React props, state 또는 다른 곳에서 공유/참조되는 배열을 정렬할 때 적용합니다. 출처: theorcdev/8bitcn-ui.
터미널 또는 명령줄 도구(Terminal, iTerm, Windows Terminal 등)를 엽니다 이 명령어를 복사하여 실행합니다: npx skills add https://github.com/theorcdev/8bitcn-ui --skill js-tosorted-immutable 설치 후 스킬은 자동으로 AI 코딩 환경에 설정되어 Claude Code나 Cursor에서 사용할 수 있습니다
인용 가능한 정보
AI/검색 인용용 안정적인 필드와 명령어.
- 설치 명령어
npx skills add https://github.com/theorcdev/8bitcn-ui --skill js-tosorted-immutable- 카테고리
- *크리에이티브
- 인증됨
- ✓
- 최초 등록
- 2026-02-01
- 업데이트
- 2026-02-18
빠른 답변
js-tosorted-immutable이란?
배열 변경을 방지하려면 sort() 대신 toSorted()를 사용하세요. React props, state 또는 다른 곳에서 공유/참조되는 배열을 정렬할 때 적용합니다. 출처: theorcdev/8bitcn-ui.
js-tosorted-immutable 설치 방법은?
터미널 또는 명령줄 도구(Terminal, iTerm, Windows Terminal 등)를 엽니다 이 명령어를 복사하여 실행합니다: npx skills add https://github.com/theorcdev/8bitcn-ui --skill js-tosorted-immutable 설치 후 스킬은 자동으로 AI 코딩 환경에 설정되어 Claude Code나 Cursor에서 사용할 수 있습니다
소스 저장소는 어디인가요?
https://github.com/theorcdev/8bitcn-ui
상세
- 카테고리
- *크리에이티브
- 출처
- skills.sh
- 최초 등록
- 2026-02-01