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 browse and extend. Contributors can add their own favorite one-liners through pull requests. The project favors concise native JavaScript patterns rather than a packaged runtime library.

Features

  • Single-line JavaScript solutions
  • Array and object utilities
  • String and date operations
  • Browser and DOM techniques
  • Individual Markdown reference entries
  • Community-submitted coding patterns

Project Samples

Project Activity

See All Activity >

Categories

AI Coding

License

MIT License

Follow 1loc

1loc Web Site

Other Useful Business Software
$300 Free Credits to Build on Google Cloud Icon
$300 Free Credits to Build on Google Cloud

New customers can spin up VMs, build with AI, and query data at no cost.

Put your $300 in credit toward real workloads, then keep building with free monthly usage for 20+ products. No commitment and no charge until you upgrade.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of 1loc!

Additional Project Details

Registered

2026-08-05