Closed variant77 closed 7 years ago
This PR fixed #146
I traced the problem to an erroneous return value of instanceof Array . for some reason in my setup it returns false. According to the MDN docs this can happen in multiple context scenarios and it is advised to use Array.isArray instead.
instanceof Array
false
Array.isArray
@rtfeldman I'd love to get your input on this PR
Looks good! So sorry for the delay in merging this @variant77!
@rtfeldman please update the npm package :)
Released as 6.1.2 @brunolemos @variant77
This PR fixed #146
I traced the problem to an erroneous return value of
instanceof Array
. for some reason in my setup it returnsfalse
. According to the MDN docs this can happen in multiple context scenarios and it is advised to useArray.isArray
instead.