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...

Markdown supported · ⌘↵ to post
No responses yet.