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

fix: purge instanceof Array from the codebase #750

Merged
merged 1 commit into from
Oct 24, 2020
Merged

Conversation

Thomaash
Copy link
Member

@Thomaash Thomaash commented Oct 24, 2020

Array.isArray works with arrays that came from other contexts like web workers, instanceof Array wouldn't consider such array to be an array even though it is perfectly valid array.

Closes #749.

Array.isArray works with arrays that came from other contexts like web
workers, instanceof Array wouldn't consider such array to be an array
even though it is perfectly valid array.
@yotamberk yotamberk merged commit c57effa into master Oct 24, 2020
@yotamberk yotamberk deleted the instanceof-array branch October 24, 2020 09:42
@vis-bot
Copy link
Collaborator

vis-bot commented Oct 24, 2020

🎉 This PR is included in version 7.4.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

Replace use of instanceof(Array) operator with Array.isArray
3 participants