It may be that I'm just very groggy this morning, but I'm having trouble understanding why this returns as true
:
_.some([null, 0, 'yes', false]); // true
I know that _.some()
returns true if at least one of the elements passes the predicate test as true. But from my understanding, if no predicate is provided, _.identity()
is used. But console.log-ing each of those elements individually with _.identity()
didn't return true
for any of them. So why does it return true?