UNPKG

react-use-simple-form

Version:

A React hook which manages and validates form state.

11 lines (10 loc) 351 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.mapObject = void 0; var mapObject = function (inputObject, map) { return Object.fromEntries(Object.entries(inputObject).map(function (_a) { var key = _a[0], value = _a[1]; return [key, map(key, value)]; })); }; exports.mapObject = mapObject;