DD2480-G9 / metrics-graphics

A library optimized for concise and principled data graphics and layouts.
http://metricsgraphicsjs.org
Mozilla Public License 2.0
0 stars 0 forks source link

Requirement: if name of key and variable are equal, use shorthand #13

Closed akevert closed 6 years ago

akevert commented 6 years ago

Instead of, as in ES5, doing this: var a = 1 var b = 2 var c = 3 var d = 4 var obj1 = { a: a, b: b, c: c, d: d }

do this: var a = 1 var b = 2 var c = 3 var d = 4 var obj1 = { a, b, c, d } if the names of the keys and the names of the variables are equal.

RickardBjorklund commented 6 years ago

No longer needed since assignment 3 is done!