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

18 lines
516 B
TypeScript

/**
* Checks if `value` is an integer.
*
* This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `number`.
*
* @param {any} value - The value to check
* @returns {boolean} `true` if `value` is integer, otherwise `false`.
*
* @example
* isInteger(3); // Returns: true
* isInteger(Infinity); // Returns: false
* isInteger('3'); // Returns: false
* isInteger([]); // Returns: false
*/
declare function isInteger(value?: any): boolean;
export { isInteger };