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...
Aug 7, 20232 min read21
