# validate-io-integer **Repository Path**: ArkTSCentralRepository/validate-io-integer ## Basic Information - **Project Name**: validate-io-integer - **Description**: Validates if a value is an integer. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-03-22 - **Last Updated**: 2026-03-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # validate-io-integer 基于[validate.io-integer](https://www.npmjs.com/package/validate.io-integer)原库1.0.5版本进行适配 ## Install ```sh ohpm install validate-io-integer ``` ## Usage > Validates if a value is an integer. ``` typescript import isInteger from 'validate-io-integer'; expect(isInteger(5)).assertTrue(); expect(isInteger(0)).assertTrue(); expect(isInteger(5.256)).assertFalse(); expect(isInteger(1 / 0)).assertFalse(); ``` __Note__: this method validates that a value is `numeric` __before__ determining if the `value` is an `integer`. For non-numeric values, the method returns `false`.