use `.reduce` to get the unique values of an array of objects
npm install @cryptosheet/unique@cryptosheet/uniqueuse .reduce to get the unique values of an array of objects
``
const unique = require('@cryptosheet/unique')
const array = [{foo: 1}, {foo: 2}, {foo: 1}]
assert.deepEqual(
array.reduce(unique('foo'), []),
[1, 2]
)
``