Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using JSON variable keys is confusing to new developers. #22

Open
ianjennings opened this issue Jul 18, 2017 · 0 comments
Open

Using JSON variable keys is confusing to new developers. #22

ianjennings opened this issue Jul 18, 2017 · 0 comments

Comments

@ianjennings
Copy link
Contributor

ianjennings commented Jul 18, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant