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

6 lines (5 loc) 268 B
import _indexOfInstanceProperty from "@babel/runtime-corejs3/core-js/instance/index-of"; export default function _isNativeFunction(fn) { var _context; return _indexOfInstanceProperty(_context = Function.toString.call(fn)).call(_context, "[native code]") !== -1; }