Color = Data(function() ({ Red: {}, Green: {}, Blue: {}, Yellow: {} }))
Is this JS or pseudocode? There are some extra parens in there and the pattern repeats everywhere. Color = Data(function() ({ Red: {}, Green: {}, Blue: {}, Yellow: {} }))
Is this JS or pseudocode? There are some extra parens in there and the pattern repeats everywhere. function (a, b, c) a + b * c;
which is the same as function (a, b, c) { return a + b * c; }
Of course, this syntax breaks down if you want to return an object literal from your anonymous function. Curly braces are too overloaded in JS! Adding parentheses disambiguates between the new and the old function syntax. Color = Data -> Red: {}, Green: {}, Blue: {}, Yellow: {}