mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 01:17:50 +00:00
Fix object coercion.
This commit is contained in:
@@ -20,7 +20,9 @@
|
||||
* // => false
|
||||
*/
|
||||
function everyValue(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 false
|
||||
|
||||
Reference in New Issue
Block a user