Functions
isUnixTimestamp
isUnixTimestamp(
putativeTimestamp
):putativeTimestamp is UnixTimestamp
This is a type guard that accepts a bigint
as input. It will both return true
if the integer
conforms to the UnixTimestamp type and will refine the type for use in your program.
Parameters
Parameter | Type |
---|---|
putativeTimestamp | bigint |
Returns
putativeTimestamp is UnixTimestamp