Skip to content

Conversation

thegeorgeous
Copy link

instanceof does not always return true for an array even if array.isArray()
return true and Object.prototype.toString() returns [Object Array]

http://blog.niftysnippets.org/2010/09/say-what.html#instanceof
https://stackoverflow.com/questions/28779255/is-instanceof-array-better-than-isarray-in-javascript

Fixes #124

`instanceof` does not always return true for an array even if `array.isArray()`
return true and `Object.prototype.toString()` returns `[Object Array]`

http://blog.niftysnippets.org/2010/09/say-what.html#instanceof
https://stackoverflow.com/questions/28779255/is-instanceof-array-better-than-isarray-in-javascript

Fixes #124
@CacheControl CacheControl merged commit 5a2723f into CacheControl:master Apr 26, 2019
@CacheControl
Copy link
Owner

thanks for the contribution @thegeorgeous , this is now published as v2.3.5

@thegeorgeous thegeorgeous deleted the 124-fix-instanceof branch May 12, 2019 17:11
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.

Error "any must be an array" even if an array is passed
2 participants