lot of changes for first actual use
This commit is contained in:
14
dist/utils.js
vendored
Normal file
14
dist/utils.js
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
function jsonPrepaper(obj, hideKeys) {
|
||||
let dup = {};
|
||||
for (let key in obj) {
|
||||
if ((hideKeys.indexOf(key) == -1) && !((key[0] == "_") && (key[1] == "_"))) {
|
||||
let dkey = (key[0] == "_") ? key.slice(1) : key;
|
||||
dup[dkey] = obj[key];
|
||||
}
|
||||
}
|
||||
return dup;
|
||||
}
|
||||
exports.jsonPrepaper = jsonPrepaper;
|
||||
//# sourceMappingURL=utils.js.map
|
Reference in New Issue
Block a user