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

fixed getting lookup index in a array with empty items #4

Merged
merged 1 commit into from
Mar 24, 2019

Conversation

AleksandrZhukov
Copy link
Contributor

  • added additional check for getting lookup index, because
    there is the error TypeError: Cannot read property 'foo' of null
    for arrays with empty items
    eg. for var a = [{ foo: 1 }]; a[10] = { foo: 10 }};
  • fixed tests

- added additional check for getting lookup index, because
  there is the error `TypeError: Cannot read property 'foo' of null`
  for arrays with empty items
  eg. for `var a = [{ foo: 1 }]; a[10] = { foo: 10 }};`
- fixed tests
@akuzko akuzko merged commit 1400247 into akuzko:master Mar 24, 2019
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

Successfully merging this pull request may close these issues.

2 participants