eon-map icon indicating copy to clipboard operation
eon-map copied to clipboard

Using JSON variable keys is confusing to new developers.

Open ianjennings opened this issue 8 years ago • 0 comments

Many new developers are not familiar with the concept of dynamic keys:

var a = "key";
var data = {};
data[a] = true;
console.log(data.key);
// true

It would make sense to provide the option of:

{
    latlng: [1,2,],
    key: 'something'
}

As an option

ianjennings avatar Jul 18 '17 20:07 ianjennings