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 (12 loc) • 450 B
JavaScript
import _Reflect$construct from "@babel/runtime-corejs3/core-js/reflect/construct";
export default function _isNativeReflectConstruct() {
if (typeof Reflect === "undefined" || !_Reflect$construct) return false;
if (_Reflect$construct.sham) return false;
if (typeof Proxy === "function") return true;
try {
Date.prototype.toString.call(_Reflect$construct(Date, [], function () {}));
return true;
} catch (e) {
return false;
}
}