UNPKG

persistent-programming

Version:

[![Build Status](https://travis-ci.com/unsegnor/object-repository.svg?branch=master)](https://travis-ci.com/unsegnor/object-repository) # object-repository Object repository. Just to work with javascript objects implementing transparent persistence. No 'S

17 lines (13 loc) 225 B
module.exports = function() { let id return Object.freeze({ getNew, setFakeId }) async function getNew(){ return id } function setFakeId(fakeId){ id = fakeId } }