MultiLoader-Template/node_modules/es-toolkit/dist/compat/predicate/isNative.d.mts
3944Realms 768f38fc97 feat: 可使用的构建模板
修改了脚本,使其可以推给Maven仓库
2026-05-03 13:02:19 +08:00

19 lines
691 B
TypeScript

/**
* Checks if a given value is a native function.
*
* This function tests whether the provided value is a native function implemented by the JavaScript engine.
* It returns `true` if the value is a native function, and `false` otherwise.
*
* @param {any} value - The value to test for native function.
* @returns {value is (...args: any[]) => any} `true` if the value is a native function, `false` otherwise.
*
* @example
* const value1 = Array.prototype.push;
* const value2 = () => {};
* const result1 = isNative(value1); // true
* const result2 = isNative(value2); // false
*/
declare function isNative(value: any): value is (...args: any[]) => any;
export { isNative };