js-function-lib
Version:
JavaScript function library
20 lines • 454 B
TypeScript
/**
* 检查 value 是否为一个整数
*
* @param {*} value 要检查的值
* @returns {boolean} 如果 value 是一个整数,那么返回 true,否则返回 false
* @version 1.1.9
* @example
*
* isInteger(1);
* // => true
*
* isInteger(1.1);
* // => false
*
* isInteger(undefined);
* // => false
*/
declare function isInteger(value: any): boolean;
export default isInteger;
//# sourceMappingURL=isInteger.d.ts.map