esamattis / esamattis/underscore.string

The function contains/include will cause the _.omit function deal with an array object incorrect

Open
#498 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.4k
Forks
367
PR merge metrics
No merged PRs in 30d

Description

The "contains/include" function in original underscore could deal with array correct, such as `["apple","banana","orange"]`.
When search a key named "a", the original contains would return `-1`.
But the underscore.string recover the contains, and make the value of return is `0`, since it only use the follow function to make it to string simply.
`return '' + object;` in `module.exports`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.