1loc
What's your favorite JavaScript single LOC (line of code)?
1loc is a community-maintained collection of useful JavaScript operations expressed as a single line of code. Each entry demonstrates a compact solution to a focused programming task. The collection is designed for quick reference, learning, and discovering language techniques that may simplify everyday scripts. Topics span arrays, objects, strings, dates, browser behavior, validation, and other common utilities. Examples are stored as individual Markdown files, making the repository easy to...