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

13 lines 459 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var concat_1 = require("../observable/concat"); var of_1 = require("../observable/of"); function endWith() { var array = []; for (var _i = 0; _i < arguments.length; _i++) { array[_i] = arguments[_i]; } return function (source) { return concat_1.concat(source, of_1.of.apply(void 0, array)); }; } exports.endWith = endWith; //# sourceMappingURL=endWith.js.map