UNPKG

@radixdlt/atom

Version:

Container for CRUD instructions known as 'Particles' that are sent to the Radix decentralized ledger

6 lines 421 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.withParticleEquals = void 0; const withEquals = (...equalFns) => (p) => (Object.assign(Object.assign({}, p), { equals: (otherParticle) => !equalFns.some((fn) => !fn(otherParticle, p)) })); exports.withParticleEquals = withEquals.bind(null, (p1, p2) => p1.radixParticleType === p2.radixParticleType); //# sourceMappingURL=particle.js.map