UNPKG

typescript-dotnet-core

Version:

A the core classes and utilities of a JavaScript-Friendly .NET Based TypeScript Library.

7 lines (6 loc) 874 B
"use strict"; /*! * @author electricessence / https://github.com/electricessence/ * Licensing: MIT https://github.com/electricessence/TypeScript.NET-Core/blob/master/LICENSE.md */function apply(e,r){var t=e||{};for(var p in r)r.hasOwnProperty(p)&&(t[p]=r[p]);return t}function ensure(e,r){var t=e||{};for(var p in r)r.hasOwnProperty(p)&&!t.hasOwnProperty(p)&&(t[p]=r[p]);return t}function copy(e){return apply({},e)}function merge(e,r){return apply(copy(e),r)}function trim(e,r){for(var t in e)r.hasOwnProperty(t)||delete e[t]}function wipe(e,r){if(void 0===r&&(r=1),e&&r)for(var t=0,p=Object.keys(e);t<p.length;t++){var n=p[t],o=e[n];delete e[n],wipe(o,r-1)}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.apply=apply,exports.ensure=ensure,exports.copy=copy,exports.merge=merge,exports.trim=trim,exports.wipe=wipe; //# sourceMappingURL=MapUtility.js.map