underscore.string icon indicating copy to clipboard operation
underscore.string copied to clipboard

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

Open jhao opened this issue 9 years ago • 0 comments

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

jhao avatar Sep 01 '16 05:09 jhao