Permalink
Browse files

fix filter on objects

  • Loading branch information...
1 parent 0e397e4 commit abe363be24564c84284c28fe7ae4c1925eec39a6 @marcuswestin committed Jun 1, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 filter.js
View
@@ -20,7 +20,7 @@ module.exports = function filter(arr, fn) {
} else {
result = {}
each(arr, function(value, key) {
- if (!fn(value, index)) { return }
+ if (!fn(value, key)) { return }
result[key] = value
})
}

0 comments on commit abe363b

Please sign in to comment.