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 Securely on AWS with Proven Frameworks
Moving to the cloud brings new challenges. How can you manage a larger attack surface while ensuring great network performance? Turn to Fortinet’s Tested Reference Architectures, blueprints for designing and securing cloud environments built by cybersecurity experts. Learn more and explore use cases in this white paper.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of 1loc!