iwmlib/lib/3rdparty/systemjs/babel-helpers/objectWithoutProperties.js

11 lines
236 B
JavaScript
Raw Normal View History

2019-04-05 10:09:27 +02:00
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;
});