@monstermann/fn
Version:
A utility library for TypeScript.
20 lines • 460 B
TypeScript
//#region src/array/concat.d.ts
/**
* `concat(array, source)`
*
* Concatenates `source` array to the end of `array`, returning a new array with the combined elements.
*
* ```ts
* concat([1, 2], [3, 4]); // [1, 2, 3, 4]
* ```
*
* ```ts
* pipe([1, 2], concat([3, 4])); // [1, 2, 3, 4]
* ```
*/
declare const concat: {
<T>(source: NoInfer<T>[]): (target: T[]) => T[];
<T>(target: T[], source: NoInfer<T>[]): T[];
};
//#endregion
export { concat };