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
Categories
AI CodingLicense
MIT LicenseFollow 1loc
Other Useful Business Software
$300 Free Credits to Build on Google Cloud
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.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of 1loc!