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

array index support in dot notation #44

Open
y0hami opened this issue Feb 6, 2019 · 0 comments
Open

array index support in dot notation #44

y0hami opened this issue Feb 6, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@y0hami
Copy link
Owner

y0hami commented Feb 6, 2019

Add support for array indexes in dot notation

const a = {
  a: [
    {
      a: 'inside array',
    },
  ],
};

get(a, 'a[0].a'); // => "inside array"
@y0hami y0hami added the enhancement New feature or request label Feb 6, 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

1 participant