UNPKG

luhn-generator

Version:

A generator of numbers that passes the validation of Luhn algorithm or Luhn formula, also known as the 'modulus 10' or 'mod 10' algorithm

10 lines 315 B
import { multicast } from './multicast'; import { refCount } from './refCount'; import { Subject } from '../Subject'; function shareSubjectFactory() { return new Subject(); } export function share() { return (source) => refCount()(multicast(shareSubjectFactory)(source)); } //# sourceMappingURL=share.js.map