UNPKG

fishbird

Version:

Fishbird is a simple, lightweight, and fast Promise utility library

7 lines 568 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var map_js = require('./map.js'); async function f(t,n,c){const r=t instanceof Map;if(!Array.isArray(t)&&!r&&typeof t!="object")throw new TypeError(`input must be object, array or map, but got ${typeof t}`);const i=r?Array.from(t.keys()):Object.keys(t),p=r?Array.from(t.values()):Object.values(t),o=await map_js.map(p,n,c),e=r?new Map:{};return i.forEach((s,a)=>{e instanceof Map?e.set(s,o[a]):e[s]=o[a];}),e}var O=f; exports.default = O; exports.props = f; //# sourceMappingURL=props.js.map