Const
Type guard that checks if a value is a non-positive integer.
Returns true for a non-positive integer — a value with no fractional component, including values outside the safe integer range (unlike SafeInt).
true
SafeInt
true if the value is a non-positive integer, false otherwise
false
Type guard that checks if a value is a non-positive integer.
Returns
truefor a non-positive integer — a value with no fractional component, including values outside the safe integer range (unlikeSafeInt).