Fix typos.

This commit is contained in:
John-David Dalton
2017-04-16 08:57:46 -05:00
parent 64a9975488
commit e2941dda3b
4 changed files with 7 additions and 6 deletions

View File

@@ -19,7 +19,8 @@
function filterObject(object, predicate) {
const result = []
Object.keys(Object(object)).forEach((key) => {
if (predicate(object[key], key, object)) {
const value = object[key]
if (predicate(value, key, object)) {
result.push(value)
}
})