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 ways to get update, choose your own
- Official Blog
- Official Twitter Account
- Hubot
- Slackbot
- js2016.tips
- Hingsir
- Awesomelists
- iOS App
- Android App
Don't forget to Star the repo, as this will help to promote the project!
- 46 - Detect document ready in pure JS
- 45 - Calculate the Max/Min value from an array
- 44 - Know the passing mechanism
- 43 - Use destructuring in function parameters
- 42 - Preventing Unapply Attacks
- 41 - Array average and median
- 40 - Using JSON.Stringify
- 39 - Advanced Javascript Properties
- 38 - Flattening multidimensional Arrays in JavaScript
- 37 - Deduplicate an Array
- 36 - Observe DOM changes in extensions
- 35 - Assignment Operators
- 34 - Implementing asynchronous loop
- 33 - Create Range 0...N easily using one line
- 32 - Map() to the rescue: adding order to Object properties
- 31 - Avoid modifying or passing
arguments
into other functions — it kills optimization - 30 - Converting truthy/falsy values to boolean
- 29 - Speed up recursive functions with memoization
- 28 - Currying vs partial application
- 27 - Short circuit evaluation in JS
- 26 - Filtering and Sorting a List of Strings
- 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