You can also:
const arr = [1, 2, 3] // with map const cloned_with_map = arr.map(i => i) // with reduce + flat const cloned_with_reduce = arr.reduce((a, b) => [a, b]) .flat() Array.of(arr).flat()
Obs.: both are bad practices.
😎
Hahaha, yes. I created this post for LinkedIn. Surprisingly, such posts get a lot more attention than posts that contains valuable information.
Linkedin is just facebook without so much trash today. hahaha
So true! xD
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You can also:
Obs.: both are bad practices.
😎
Hahaha, yes. I created this post for LinkedIn. Surprisingly, such posts get a lot more attention than posts that contains valuable information.
Linkedin is just facebook without so much trash today. hahaha
So true! xD