UNPKG

lakutata

Version:

An IoC-based universal application framework.

21 lines (13 loc) 537 B
"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const t = Object.prototype.toString; const o = Function.prototype.toString; const e = /^\[object .+?Constructor\]$/; const n = RegExp("^" + String(t).replace(/[.*+?^${}()|[\]\/\\]/g, "\\$&").replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"); function c(c) { const r = typeof c; return r == "function" ? n.test(o.call(c)) : c && r == "object" && e.test(t.call(c)) || false; } exports.IsNativeFunction = c;