@radixdlt/atom
Version:
Container for CRUD instructions known as 'Particles' that are sent to the Radix decentralized ledger
6 lines • 421 B
JavaScript
;
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