const array = [1, 1, 2, 3, 5, 5, 1]
const uniqueArray = [...new Set(array)];
console.log(uniqueArray); // Result: [1, 2, 3, 5]
To learn more about arrays in JavaScript, visit MDN
const array = [1, 1, 2, 3, 5, 5, 1]
const uniqueArray = [...new Set(array)];
console.log(uniqueArray); // Result: [1, 2, 3, 5]
To learn more about arrays in JavaScript, visit MDN
For further actions, you may consider blocking this person and/or reporting abuse
Type is an everyday concept to programmers, but itβs surprisingly difficult to define it succinctly. I find it helpful to use Set as a conceptual model instead.
One extremely powerful typescript feature is automatic type narrowing based on control flow. This means a variable has two types associated with it at any specific point of code location: a declaration type and a narrowed type.
...
Rishikesh Vedpathak -
Code of Relevancy -
Rafael Magalhaes -
Shan Shaji -
Once suspended, sam_lukaa will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, sam_lukaa will be able to comment and publish posts again.
Once unpublished, all posts by sam_lukaa will become hidden and only accessible to themselves.
If sam_lukaa 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 Samuel Lucas.
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 sam_lukaa:
Unflagging sam_lukaa will restore default visibility to their posts.
Top comments (0)