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
Build Agents and Models on One Platform Icon
Build Agents and Models on One Platform

Everything you need to build production-ready agents and models. Access 200+ Google and third-party AI models and tools.

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.
Try It Free
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