immutable-path
Version:
Immutable `get`, `set`, `has`, `unset` deep path operations libraray for object, array and `Map`.
14 lines • 375 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Returns a map constructed from given object.
*
* @ignore
* @param object is the object to create `Map` from.
* @returns `Map` created from object.
*/
function mapFrom(object) {
return new Map(Object.entries(object));
}
exports.default = mapFrom;
//# sourceMappingURL=map-from.js.map