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

Determining whether a value is an array correctly #50

Merged
merged 3 commits into from
Aug 1, 2020

Conversation

Wzb3422
Copy link
Contributor

@Wzb3422 Wzb3422 commented Jun 27, 2020

Using input.length !== undefined may cause wrong type judgment.
e.g.const obj = { name: 'test', length: 1 };

@Wzb3422 Wzb3422 requested review from ftrimble and hapoore as code owners June 27, 2020 07:25
src/map.ts Outdated Show resolved Hide resolved
@gurpreetatwal
Copy link

#52 is somewhat related to this PR as well

@Wzb3422 Wzb3422 changed the title Use instanceof instead of Duck typing Determining whether a value is an array correctly Jul 31, 2020
@ftrimble ftrimble merged commit 6ca9c71 into blend:master Aug 1, 2020
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.

4 participants