mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Fix object coercion.
This commit is contained in:
@@ -15,7 +15,9 @@
|
||||
* // => true
|
||||
*/
|
||||
function someValues(object, predicate) {
|
||||
const props = Object.keys(Object(object))
|
||||
object = Object(object)
|
||||
const props = Object.keys(object)
|
||||
|
||||
for (const key of props) {
|
||||
if (predicate(object[key], key, object)) {
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user