Home > @gglib/utils > copy

copy() function

Signature:

export declare function copy<T>(srcOrDeep: boolean, srcOrDest?: T[], dest?: T[]): T[];

Parameters

Parameter Type Description
srcOrDeep boolean
srcOrDest T[]
dest T[]

Returns:

T[]