Daftar Lembar Cheat JavaScript
// before -- [_,_,NEW,REF,_,_]
list.splice(list.indexOf(REF), 0, NEW))
DevLorenz02
// before -- [_,_,NEW,REF,_,_]
list.splice(list.indexOf(REF), 0, NEW))
// example
[ "x", "y", "z" ].join(" - ") // "x - y - z"
// syntax
arr.join([separator])
// after -- [_,_,REF,NEW,_,_]
list.splice(list.indexOf(REF)+1, 0, NEW))
list = [a,b,c,d,e]
.filter(n => ...) => array
.map(n => ...) // ie9+
.reduce((total, n) => total) // ie9+
.reduceRight(...)