UNPKG

supergeneric

Version:

Supergeneric JS helper functions... formatters, math functions, sort functions, etc.

2 lines (1 loc) 164 B
"use strict";const r=t=>e=>{if(e.length)return e.map(r(t));for(let r in e)e[r]=t(e[r],r);return e};exports.convert=(t,...e)=>{for(const n of e)t=r(n)(t);return t};