UNPKG

uspring

Version:

A very fast Webserver which has interface like springboot

23 lines (22 loc) 669 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var StripUnknown = /** @class */ (function () { function StripUnknown() { } StripUnknown.target = function (objTarget) { return { value: function (objValue) { var result = {}; //@ts-ignore objTarget._inner.children.forEach(function (child) { var key = child.key; // @ts-ignore result[key] = objValue[key]; }); return result; } }; }; return StripUnknown; }()); exports.default = StripUnknown;