Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

Deduplicate an array using a single line of JavaScript

node v8.17.0
version: 1.0.0
endpointsharetweet
Deduplicate a JavaScript array using a single line of ES5/6+. Works in Node and browsers (IE11+).
Shared by the team building https://www.searchmy.bio and https://www.wethrift.com
const deduplicated_array = Array.from(new Set(['one', 'two', 'three', 'two', 'one']))
Loading…

no comments

    sign in to comment