Javascript
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.
Equality comparators
Because objects are not strongly typed, there's an equality comparator that also does type checking: ===
Quick example:
Destructuring objects
Unpacks values from arrays.
Quick example:
[a, b] = [10, 20]; console.log(a); // expected output: 10
Three dots operator
Array comprehension utility.
Quick example:
Last updated
Was this helpful?