phuoc-ng

Favorite single line of code

What's your favorite JavaScript single LOC (line of code)?
Under MIT License
By phuoc-ng

javascript tips-and-tricks js-tips one-liner javascript-utils one-line-code

Favorite single line of code

What's your favorite JavaScript single LOC (line of code)? Let me know!



Running it on local

  1. Clone the project:


shell
$ git clone https://github.com/phuoc-ng/1loc



  1. Install the dependencies:


console
$ cd 1loc
$ npm install



  1. Run it on the local:


console
$ npm run serve


Look at the console to see the Local URL. Open it in your browser to see it in action.


Contributing

Pull requests are welcomed. To submit your favorite JavaScript single line of code, please create a markdown file, and put it in
a particular category of the collections folder.


About

This project is developed by Nguyen Huu Phuoc. I love building products and sharing knowledge.


Be my friend on
* Twitter
* dev.to
* Github


Products

You might be interested in my products:


Products
* Blur Page - A browser extension to hide sensitive information on a web page
* Check Browsers Support - A browser extension to check browser compatibility without leaving your tab
* Fake Numbers - Generate fake and valid numbers
* Form Validation - The best validation library for JavaScript
* IntersectionObserver Examples - Practical, real world examples of IntersectionObserver
* React PDF Viewer - A React component to view a PDF document


Resources
* 1LOC - Favorite JavaScript utilities in single line of code
* CSS Layout - A collection of popular layouts and patterns made with CSS
* HTML DOM - How to manage HTML DOM with vanilla JavaScript
* Responsive Design Patterns - A collection of patterns to create a responsive web page
* Super tiny, quick tips, tricks and best practices of front-end development
* this VS that - The differences between and in the front-end development