UNPKG

@ngneat/falso

Version:

All the Fake Data for All Your Real Needs

17 lines (16 loc) 356 B
import { FakeOptions } from './core/core'; /** * Get a random item from array. * * @category general * * @example * * rand([ 1, 2, 3 ]) * * @example * * rand([ 1, 2, 3 ], { length: 10 }) * */ export declare function rand<T, Options extends FakeOptions = never>(arr: Readonly<T[]>, options?: Options): import("./core/core").Return<T, Options>;