UNPKG

@promptbook/langtail

Version:

It's time for a paradigm shift. The future of software in plain English, French or Latin

12 lines (11 loc) 411 B
import type { Arrayable } from '../types/Arrayable'; /** * Takes an item or an array of items and returns an array of items * * 1) Any item except array and undefined returns array with that one item (also null) * 2) Undefined returns empty array * 3) Array returns itself * * @private internal utility */ export declare function arrayableToArray<TItem>(input?: Arrayable<TItem>): ReadonlyArray<TItem>;