UNPKG

@vendure/common

Version:
19 lines 493 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.pick = pick; function pick(inputOrProps, maybeProps) { if (Array.isArray(inputOrProps)) { return (input) => _pick(input, inputOrProps); } else { return _pick(inputOrProps, maybeProps || []); } } function _pick(input, props) { const output = {}; for (const prop of props) { output[prop] = input[prop]; } return output; } //# sourceMappingURL=pick.js.map