ECMAScript - (ES10) VS (ES11)
Here are the features introduced in ES10 and ES11 :
ECMAScript 2019 (ES10):
1. Array.prototype.flat(): Flattens nested arrays to a specified depth.
const nestedArray = [1, [2, [3, [4]]]];
const flattenedArray = nestedArray.flat(2);
console.log(flatte...
blog.techlearnindia.com2 min read