I am new to javascript, recently I am studying javascript array and object.
if I have a object
const initialValue = {
a: 30,
b: 40,
c: 50
}
const initialValueKey = Object.keys(initialValue)
const [, , , ...value] = initialValueKey;
I wonder what is this [, , , ...value] expression, I know ...is spread operator, but i'm not sure what the value of [, , , ...value] here.
value. Try making yourinitialValuewith more properties to see the differenceconst value = initialValueKey.slice(3);