belgattitude/httpx

View on GitHub
packages/assert/src/number.guards.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { NumberSafeInt } from './number.types';

export const isNumberSafeInt = (v: unknown): v is NumberSafeInt => {
  return typeof v === 'number' && Number.isSafeInteger(v);
};