UNPKG

supergeneric

Version:

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

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