Basic JS
null and undefined
use strict
Desctructuring (Π΄Π΅ΡΡΡΡΠΊΡΡΡΠΈΠ·Π°ΡΠΈΡ ΠΎΠ±ΡΠ΅ΠΊΡΠ°)
// array
let [,b] = "a b".split(" ")
// object
let t = {a: "", b: 1, c: true}
let {a: somea, b: someb, c} = t
console.log(somea, someb, c)
let {c, ...props} = tthis
Last updated