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

20 lines 572 B
import { Subscriber } from '../Subscriber'; export function dematerialize() { return function dematerializeOperatorFunction(source) { return source.lift(new DeMaterializeOperator()); }; } class DeMaterializeOperator { call(subscriber, source) { return source.subscribe(new DeMaterializeSubscriber(subscriber)); } } class DeMaterializeSubscriber extends Subscriber { constructor(destination) { super(destination); } _next(value) { value.observe(this.destination); } } //# sourceMappingURL=dematerialize.js.map