You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
529 B
19 lines
529 B
"use strict"; |
|
|
|
exports.__esModule = true; |
|
|
|
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } |
|
|
|
var omit = function omit(obj, keys) { |
|
var rest = _objectWithoutProperties(obj, []); |
|
|
|
for (var i = 0; i < keys.length; i++) { |
|
var key = keys[i]; |
|
if (rest.hasOwnProperty(key)) { |
|
delete rest[key]; |
|
} |
|
} |
|
return rest; |
|
}; |
|
|
|
exports.default = omit; |