New year, new project. A JS tip per day!
With great excitement, I introduce these short and useful daily JavaScript tips that will allow you to improve your code writing. With less than 2 minutes each day, you will be able to read about performance, conventions, hacks, interview questions and all the items that the future of this awesome language holds for us.
At midday, no matter if it is a weekend or a holiday, a tip will be posted and tweeted.
Please feel free to send us a PR with your own JavaScript tip to be published here. Any improvements or suggestions are more than welcome! Click to see the instructions
There are a lot of way to get update, choose your own
Don't forget to Star the repo, as this will help to promote the project!
- 25 - Using immediately invoked function expression
- 24 - Use === instead of ==
- 23 - Converting to number fast way
- 22 - Empty an Array
- 21 - Shuffle an Array
- 20 - Return objects to enable chaining of functions
- 19 - Safe string concatenation
- 18 - Rounding the fast way
- 17 - Node.js: Run a module if it is not "required"
- 16 - Passing arguments to callback functions
- 15 - Even simpler way of using indexOf as a contains clause
- 14 - Fat Arrow Functions #ES6
- 13 - Tip to measure performance of a javascript block
- 12 - Pseudomandatory parameters in ES6 functions #ES6
- 11 - Hoisting
- 10 - Check if a property is in an Object
- 09 - Template Strings
- 08 - Converting a Node List to an Array
- 07 - "use strict" and get lazy
- 06 - Writing a single method for arrays and a single element
- 05 - Differences between
undefined
andnull
- 04 - Sorting strings with accented characters
- 03 - Improve Nested Conditionals
- 02 - ReactJs - Keys in children components are important
- 01 - AngularJs:
$digest
vs$apply
- 00 - Insert item inside an Array