mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 20:07:49 +00:00
Cleanup benchmarks in perf.js.
Former-commit-id: f845855383e01c63d513cea53cec86abb4f4fb65
This commit is contained in:
8
vendor/underscore/underscore.js
vendored
8
vendor/underscore/underscore.js
vendored
@@ -708,11 +708,11 @@
|
||||
|
||||
// Return a copy of the object without the blacklisted properties.
|
||||
_.omit = function(obj) {
|
||||
var copy = _.extend({}, obj);
|
||||
var copy = {};
|
||||
var keys = _.flatten(slice.call(arguments, 1));
|
||||
each(keys, function(key) {
|
||||
delete copy[key];
|
||||
});
|
||||
for (var key in obj) {
|
||||
if (!_.include(keys, key)) copy[key] = obj[key];
|
||||
}
|
||||
return copy;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user