Skip to content

Ishank-dubey/JS_Snippets

Repository files navigation

General functions

ES 6 specific

let keyword

  • Scope, Hoisting, Alternate to IIF.
  • letInPlaceOfIIF.js - A way to use 'let' so as to avoid use of Immediately Invoked Functions .

Multilingual Strings

  • countCharForNonBMP.js - A way on ES6 standards to find the number of characters present in a Multilingual string.

Arrow Functions

  • this key word absent
  • arrowFunctions.js - A way on ES6 standards to find the number of characters present in a Multilingual string.

computed properties

  • computedPropertyName.js - A way on ES6 standards to find the number of characters present in a Multilingual string.

converting the arguments parameter into an Array

Spread operator Vs Rest parameters

Destructuring Objects and Arrays

Concept of the Tail Call

Super keyword

Sets and Maps

  • setsAndMaps.js - Utility of Sets and Maps also discusses the Weak Sets and Maps.

Symbols

Iterators and Generators

asynchProgramming in ES6

Formal Classes in ES 6

Proxy and Reflection

  • pandR.js - Object Proxy, Reflections and their basic use cases.

Number and minor changes

Exporting and Importing

  • Not supported as of now?
Acknowledgements -