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

Add 'Dynamic Property Names' to 'ES2015 (ES6) Examples' section in 'Select Example' drop down #2

Open
patelg123 opened this issue Oct 23, 2018 · 1 comment
Labels
🚀 enhancement New feature or request
Milestone

Comments

@patelg123
Copy link
Member

Type of issue

Idea

Description (include any screenshots or debugging information if applicable)

ES6 Dynamic Property Names

Allows the ability to create or add properties with dynamically assigned keys:

let city= 'leicester_';
let a = {
[ city + 'population' ]: 500000
};

a[ city + 'county' ] = 'Leicestershire';
console.log(a); // {leicester_population: 350000, leicester_county: 'Leicestershire' }

@joshghent
Copy link
Contributor

Great idea! We will keep the same examples when we rewrite the site so we would happily accept a contribution for this 👍 Thanks for the idea!

@joshghent joshghent transferred this issue from esfiddle/esfiddle Nov 11, 2018
@collinmesser collinmesser added the 🚀 enhancement New feature or request label Oct 7, 2019
@collinmesser collinmesser added this to the 4.1 milestone Oct 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants