const arr = [1,1,2,3,4,4,5] const uniqueArr = [...new Set(arr)]; console.log(uniqueArr); //[ 1, 2, 3, 4, 5 ]
import _ from 'lodash'; const arr = [1,1,2,3,4,4,5]； const uniqueArr = _.uniq(arr); console.log(uniqueArr); //[ 1, 2, 3, 4, 5 ]
For further actions, you may consider blocking this person and/or reporting abuse
Sorry, it's true.
Once suspended, kongfuboy123 will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, kongfuboy123 will be able to comment and publish posts again.
Once unpublished, all posts by kongfuboy123 will become hidden and only accessible to themselves.
If kongfuboy123 is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to 打coding的奥特曼.
They can still re-publish the post if they are not suspended.
Thanks for keeping DEV Community 👩💻👨💻 safe. Here is what you can do to flag kongfuboy123:
Unflagging kongfuboy123 will restore default visibility to their posts.