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 promises are used to handle asynchronous operations.

3m read timeFrom dev.to
Post cover image
Table of contents
Table of Contentsmap and filterslice and spliceconcatfind and findIndexdestructingrest & spread operatorpromises
17 Comments

Sort: