JS Tosorted Immutable

Use toSorted() instead of sort() to avoid mutating arrays. Apply when sorting arrays that are React props, state, or otherwise shared/referenced elsewhere.

majiayu000 Updated 567 repo stars

File contents

majiayu000/claude-skill-registry-data/tree/main/data/js-tosorted-immutable commit dacf6ad640

Frequently asked questions

npx skillmds@latest add majiayu000/js-tosorted-immutable