A universally-unique, lexicographically-sortable, identifier generator
78
Build a utility function that filters a collection of ULID strings to return only those created within a specified time range.
Your implementation should:
@generates
/**
* Filters an array of ULIDs to return only those created within the specified time range.
*
* @param ulids - Array of ULID strings to filter
* @param startTime - Start of time range in milliseconds (inclusive)
* @param endTime - End of time range in milliseconds (inclusive)
* @returns Array of ULIDs that fall within the specified time range
*/
export function filterULIDsByTimeRange(
ulids: string[],
startTime: number,
endTime: number
): string[];Provides ULID generation and decoding functionality.
Install with Tessl CLI
npx tessl i tessl/npm-ulidevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10