Skip to content

Tankōbon / lib/reading-stats / periodKey

Function: periodKey() ​

periodKey(date, period): string

Defined in: lib/reading-stats.ts:47

The key (YYYY-MM or YYYY) of the local month or year a date falls in.

Parameters ​

date ​

Date

period ​

StatsPeriod

Returns ​

string