UNPKG

lakutata

Version:

An IoC-based universal application framework.

16 lines (10 loc) 522 B
/* Build Date: Mon Jan 05 2026 23:52:23 GMT+0800 (China Standard Time) */ const t = Object.prototype.toString; const o = Function.prototype.toString; const n = /^\[object .+?Constructor\]$/; const c = RegExp("^" + String(t).replace(/[.*+?^${}()|[\]\/\\]/g, "\\$&").replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"); function e(e) { const r = typeof e; return r == "function" ? c.test(o.call(e)) : e && r == "object" && n.test(t.call(e)) || false; } export { e as IsNativeFunction };