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
15 lines (12 loc) • 326 B
JavaScript
/*eslint no-console: 0 */
/**
* Logs a message to the developer console (if it exists and is active).
*/
function log() {
'use strict';
if (typeof console === 'object' && console.log) {
// IE does not support console.log.apply
Function.prototype.apply.call(console.log, console, arguments);
}
}
export default log;