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
Build Agents and Models on One Platform
Gemini Enterprise Agent Platform is Google Cloud's comprehensive platform for developers to build, scale, govern, and optimize agents and models. Choose from Google's most advanced models and third-party models like Anthropic's Claude Model Family.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of 1loc!