UNPKG

@nozbe/watermelondb

Version:

Build powerful React Native and React web apps that scale from hundreds to tens of thousands of records and remain fast

20 lines (19 loc) 445 B
"use strict"; exports.__esModule = true; exports.default = void 0; /* eslint-disable no-restricted-syntax */ /* eslint-disable guard-for-in */ function mapObj(fn, obj) { if (1 === arguments.length) { // $FlowFixMe return function (_obj) { return mapObj(fn, _obj); }; } var result = {}; for (var prop in obj) { result[prop] = fn(obj[prop], prop, obj); } return result; } var _default = exports.default = mapObj;