MCPcopy
hub / github.com/flatpickr/flatpickr / arrayify

Function arrayify

src/utils/index.ts:15–16  ·  view source on GitHub ↗
(obj: T | T[])

Source from the content-addressed store, hash-verified

13}
14
15export const arrayify = <T>(obj: T | T[]): T[] =>
16 obj instanceof Array ? obj : [obj];
17
18export type IncrementEvent = MouseEvent & { delta: number; type: "increment" };

Callers 2

parseConfigFunction · 0.90
setFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…