Javascript
Last updated
Was this helpful?
Last updated
Was this helpful?
We'll shed some light on some mysterious Javascript constructs that are unfamiliar when you come from a different programming language. The 3 below are everything that should suprise you, that you will find used with Dashboard Hero or in adjacent libraries.
Because objects are not strongly typed, there's an equality comparator that also does type checking: ===
Quick example:
Unpacks values from arrays.
Quick example:
[a, b] = [10, 20]; console.log(a); // expected output: 10
Array comprehension utility.
Quick example: