What’s New in JavaScript for 2019

whats new in es2019

String trimStart() and trimEnd()

      as name defined it’s used to remove white space from the start and end of the string. check browser compatibility 

Bigger Numbers with BigInt

We may see a BigInt primitive for whole numbers larger than the current maximum value of 253. A BigInt can be declared in a few different ways.

Flatten Arrays with flat() and flatMap()

flat() is design to convert multidimensional array to single dimensional array

flatMap() is similar to map(), but the callback can return an array, and the end result will be flattened one-dimensional array instead of nested arrays.



Please enter your comment!
Please enter your name here