is-what 5.3.0 → 5.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -18,6 +18,7 @@ export { isFunction } from './isFunction.js';
18
18
  export type { AnyFunction } from './isFunction.js';
19
19
  export { isHexDecimal } from './isHexDecimal.js';
20
20
  export { isInstanceOf } from './isInstanceOf.js';
21
+ export { isInteger } from './isInteger.js';
21
22
  export { isIterable } from './isIterable.js';
22
23
  export { isMap } from './isMap.js';
23
24
  export { isNaNValue } from './isNaNValue.js';
package/dist/index.js CHANGED
@@ -16,6 +16,7 @@ export { isFullString } from './isFullString.js';
16
16
  export { isFunction } from './isFunction.js';
17
17
  export { isHexDecimal } from './isHexDecimal.js';
18
18
  export { isInstanceOf } from './isInstanceOf.js';
19
+ export { isInteger } from './isInteger.js';
19
20
  export { isIterable } from './isIterable.js';
20
21
  export { isMap } from './isMap.js';
21
22
  export { isNaNValue } from './isNaNValue.js';
@@ -0,0 +1,2 @@
1
+ /** Returns whether the payload is an integer number */
2
+ export declare function isInteger(payload: unknown): payload is number;
@@ -0,0 +1,5 @@
1
+ import { getType } from './getType.js';
2
+ /** Returns whether the payload is an integer number */
3
+ export function isInteger(payload) {
4
+ return getType(payload) === 'Number' && Number.isInteger(payload);
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "is-what",
3
- "version": "5.3.0",
3
+ "version": "5.4.0",
4
4
  "description": "JS type check (TypeScript supported) functions like `isPlainObject() isArray()` etc. A simple & small integration.",
5
5
  "type": "module",
6
6
  "sideEffects": false,