The destructuring rest & spread operator promises map and filter methods. The find method returns the first element that satisfies the condition. FindIndex returns the index of that ["jack", "pritom" The spread operator enables us to spread the content of a iterable (i.e. array) into individual elements Spread. In simple terms
Table of contents
Table of Contentsmap and filterslice and spliceconcatfind and findIndexdestructingrest & spread operatorpromises17 Comments
Sort: