Skip to content
This repository has been archived by the owner on Jul 6, 2019. It is now read-only.

Odd behaviour when submitting empty array to matchesAny #84

Open
fgNv opened this issue Dec 23, 2015 · 0 comments
Open

Odd behaviour when submitting empty array to matchesAny #84

fgNv opened this issue Dec 23, 2015 · 0 comments

Comments

@fgNv
Copy link

fgNv commented Dec 23, 2015

the function some in Underscore.js , returns false if an empty array is provided. The equivalent function in underscore-php matchesAny, returns true instead.

Therefore I suggest a change for matchesAny, to return false when an empty array is provided.

What do you think?

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

No branches or pull requests

1 participant