Page MenuHomePhorge

test_array_from.js
No OneTemporary

Size
301 B
Referenced Files
None
Subscribers
None

test_array_from.js

const myArray = ['a', 1, 'a', 2, '1'];
const unique = Array.from(new Set(myArray));
console.log('Set:', unique);
const doubled = Array.from(new Set([1, 2, 3]), x => x * 2);
console.log('Set+map:', doubled);
console.log('Array:', Array.from([10, 20, 30]));
console.log('String:', Array.from("abc"));

File Metadata

Mime Type
text/plain
Expires
Wed, Jun 17, 1:20 PM (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
539085
Default Alt Text
test_array_from.js (301 B)

Event Timeline