Skip to content

Commit

Permalink
use String instead of function(o){ return '' + o; }; thanks @megawac
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra committed Mar 13, 2014
1 parent a315e9f commit 120283d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion underscore.js
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@
if (_.isFunction(iterator)) {
iterator = _.negate(iterator);
} else {
keys = _.map(concat.apply([], slice.call(arguments, 1)), function(o){ return '' + o; });
keys = _.map(concat.apply([], slice.call(arguments, 1)), String);
iterator = function(value, key) { return !_.contains(keys, key); };
}
return _.pick(obj, iterator, context);
Expand Down

0 comments on commit 120283d

Please sign in to comment.