UNPKG

foxts

Version:

Opinionated collection of common TypeScript utils by @SukkaW

2 lines (1 loc) 280 B
import{identity as r}from"./identity.mjs";function e(r,e,t){let n,o=e.values();for(;!(n=o.next()).done;)r.push(t(n.value));return r}function t(n,o,u=r){if(!Array.isArray(o))return e(n,o,u);for(let r=0,t=o.length;r<t;r++)e(n,o[r],u);return n}export{t as appendSetElementsToArray};