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

12 lines (10 loc) 188 B
module.exports = function() { let currentId = 0 return Object.freeze({ getNew }) async function getNew(){ currentId++ return currentId } }