9 lines
451 B
JavaScript
9 lines
451 B
JavaScript
// Metro module 196 (f197).
|
|
export function isNativeFunction(a0) {
|
|
return typeof a0 === "function" ? a0.toString().indexOf("[native code]") > -1 : typeof a0 === "function";
|
|
}
|
|
export function hasNativeConstructor(a0, a1) {
|
|
const constructor = Object.getPrototypeOf(a0).constructor;
|
|
return constructor.name === a1 && (typeof constructor === "function" ? constructor.toString().indexOf("[native code]") > -1 : typeof constructor === "function");
|
|
}
|