UNPKG

typedash

Version:

modern, type-safe collection of utility functions

12 lines (10 loc) 266 B
'use strict'; // src/functions/invert/invert.ts function invert(object) { return Object.fromEntries( Object.entries(object).map(([key, value]) => [value, key]) ); } exports.invert = invert; //# sourceMappingURL=out.js.map //# sourceMappingURL=index.cjs.map