Skip to content

Error: expecting a positive integer

benjamingr edited this page Feb 7, 2014 · 1 revision

Error: expecting a positive integer.

This happens when you call .some passing it a negative value or a non-integer.

One possible cause is using .indexOf which returns -1 when it doesn't find the value being searched for.

Please consider reading the API docs for .some.