vtils

Home > utils > sampleIndex

sampleIndex() function

Signature:

export declare function sampleIndex<T extends Record<any, any>>(collection: T): keyof T | undefined;

Parameters

Parameter Type Description
collection T  

Returns:

keyof T | undefined