@jsvision/ui / historyEntries
Function: historyEntries()
historyEntries(
id):string[]
Defined in: ui/src/dropdown/history-store.ts:105
A snapshot copy of the entries for id, oldest→newest; empty when the id is unknown. The copy is safe to mutate without affecting the store.
Parameters
id
number
The numeric history id.
Returns
string[]
A new array of the stored entries.
Example
ts
import { historyAdd, historyEntries } from '@jsvision/ui';
historyAdd(4, 'a');
historyAdd(4, 'b');
historyEntries(4); // ['a', 'b']