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

9 lines (6 loc) 294 B
var _indexOfInstanceProperty = require("@babel/runtime-corejs3/core-js/instance/index-of"); function _isNativeFunction(fn) { var _context; return _indexOfInstanceProperty(_context = Function.toString.call(fn)).call(_context, "[native code]") !== -1; } module.exports = _isNativeFunction;