Monday, January 13, 2020

referensi:
https://davidwalsh.name/
https://levelup.gitconnected.com/@kunaltandon.kt?source=post_page-----292e1962b1f6----------------------
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set
https://css-tricks.com/a-minimal-javascript-setup/

Get Unique Values of an Array

Getting an array of unique values is probably easier than you think:

var j = [...new Set([1, 2, 3, 3])]
>> [1, 2, 3]

Combining Multiple Objects

Consider you have three different objects:
const obj1 = {'a': 1, 'b': 2};
const obj2 = {'c': 3};
const obj3 = {'d': 4};

A Minimal JavaScript Setup:

Naming conventions

Scope

1 comment: