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

10 lines (8 loc) 224 B
module.exports = function({object}) { return Object.freeze({ isSatisfiedBy }) async function isSatisfiedBy(otherObject){ return (await object.getId()) === (await otherObject.getId()) } }