iwmlib/3rdparty/systemjs/babel-helpers/objectWithoutProperties.js
2019-03-21 09:57:27 +01:00

11 lines
236 B
JavaScript
Executable File

export default (function (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;
});