webpack-auto-inject-version/dist/core/utils.js

19 lines
477 B
JavaScript
Raw Normal View History

2016-10-20 20:09:44 +11:00
var Utils = (function () {
function Utils() {
}
Utils.isArgv = function (arg) {
return process.argv.indexOf("--" + arg) >= 0 ? true : false;
};
Utils.merge_options = function (obj1, obj2) {
var obj3 = {};
for (var attrname in obj1) {
obj3[attrname] = obj1[attrname];
}
for (var attrname in obj2) {
obj3[attrname] = obj2[attrname];
}
return obj3;
};
return Utils;
}());