Skip to content

@jsvision/ui / historyCount

Function: historyCount()

historyCount(id): number

Defined in: ui/src/dropdown/history-store.ts:89

The number of stored entries for id (0 when the id is unknown).

Parameters

id

number

The numeric history id.

Returns

number

The entry count.

Example

ts
import { historyAdd, historyCount } from '@jsvision/ui';
historyAdd(3, 'x');
historyCount(3); // 1