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

12 lines 358 B
import { async } from '../scheduler/async'; import { map } from './map'; export function timestamp(scheduler = async) { return map((value) => new Timestamp(value, scheduler.now())); } export class Timestamp { constructor(value, timestamp) { this.value = value; this.timestamp = timestamp; } } //# sourceMappingURL=timestamp.js.map