See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
array.filter(function (item, position) { | |
return array.indexOf(item) == position | |
}) |
const grabRickAndMorty = { | |
info: { | |
count: 591, | |
pages: 30, | |
next: 'https://rickandmortyapi.com/api/character/?page=2', | |
prev: null, | |
}, | |
results: [ | |
{ | |
id: 1, |
// using spread expression | |
let [one, two, three] = [...'12', { ...'abc' }] | |
const obj = { one, two, three } | |
function realDeepClone(obj, key, clone) { | |
if (!key) { | |
clone = Object.defineProperties({}, Object.getOwnPropertyDescriptors(obj)) | |
} else { | |
clone[key] = Object.defineProperties( | |
{}, |