Const
Type guard that checks if a value is a positive safe integer.
Returns true for a positive safe integer — a value with no fractional component.
true
true if the value is a positive safe integer, false otherwise
false
assert.isTrue(isPositiveSafeInt(1));assert.isTrue(isPositiveSafeInt(Number.MAX_SAFE_INTEGER));assert.isFalse(isPositiveSafeInt(0));assert.isTrue(PositiveSafeInt.is(42)); Copy
assert.isTrue(isPositiveSafeInt(1));assert.isTrue(isPositiveSafeInt(Number.MAX_SAFE_INTEGER));assert.isFalse(isPositiveSafeInt(0));assert.isTrue(PositiveSafeInt.is(42));
Type guard that checks if a value is a positive safe integer.
Returns
truefor a positive safe integer — a value with no fractional component.