const a = [1, 2, 3];
const [b] = a;
b
// 1
[] is the decomposing operator.
Also:
const [c, ...rest] = a;
c
// 1
rest
// [2, 3]
... is the rest operator.
const a = [1, 2, 3];
const [b] = a;
b
// 1
[] is the decomposing operator.
Also:
const [c, ...rest] = a;
c
// 1
rest
// [2, 3]
... is the rest operator.
For further actions, you may consider blocking this person and/or reporting abuse
Generate dynamic JSON-driven forms directly in your JavaScript app (Angular, React, Vue.js, jQuery) with a fully customizable drag-and-drop form builder. Easily integrate with any backend system and retain full ownership over your data, with no user or form submission limits.
Prince -
Adam -
0x2e Tech -
0x2e Tech -
Top comments (2)
Short and sweet, I like it.
I like it. This is exactly what I was looking for.