UNPKG

@qntm-code/utils

Version:

A collection of useful utility functions with associated TypeScript types. All functions have been unit tested.

5 lines (4 loc) 152 B
/** * Checks the provided value is an array and if not returns the value within an array. */ export declare function toArray<T>(value: T | T[]): T[];