fishbird
Version:
Fishbird is a simple, lightweight, and fast Promise utility library
4 lines • 479 B
JavaScript
import { map } from './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(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 m=f;
export { m as default, f as props };
//# sourceMappingURL=props.js.map