Object
Object
import { collections } from "@stephen-shopopop/standard"
import assert from "assert"
const a = {foo: true}
const b = {foo: {bar: true}}
assert.equal(collections.deepMerge(a, b), {foo: {bar: true}});
array Distinct elements in array
import { collections } from from "@stephen-shopopop/standard"
import assert from "assert"
const numbers = [ 3, 2, 5, 2, 5 ]
const distinctNumbers = collections.distinct(numbers)
assert.equal(distinctNumbers, [ 3, 2, 5 ])
Generated using TypeDoc
Object