UNPKG

fishbird

Version:

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

4 lines 481 B
import { a } from './chunk-IKINNHAE.js'; async function f(t,c,i){let 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}`);let p=r?Array.from(t.keys()):Object.keys(t),l=r?Array.from(t.values()):Object.values(t),o=await a(l,c,i),e=r?new Map:{};return p.forEach((s,a)=>{e instanceof Map?e.set(s,o[a]):e[s]=o[a];}),e}var m=f; export { f as a, m as b }; //# sourceMappingURL=chunk-V3XWDEGM.js.map