Repository URL to install this package:
|
Version:
6.0.4 ▾
|
declare const _default: <Type = any[]>(one: Type, two: Type) => any[];
/**
* @desc concat two values, coerce to arrays
* @since 4.0.0
* @memberOf array
*
* @param {Array | *} one toArr1
* @param {Array | *} two toArr2
* @return {Array} [one, two]
*
* @name concatArray
* @alias concatArray
*
* @func
* @see deps/to-arr
*
* @example
*
* concat([1], [2]) //=> [1, 2]
* concat([1], 2) //=> [1, 2]
* concat(1, 2) //=> [1, 2]
* concat(new Set([1]), 2) //=> [1, 2]
*
* // kind of weird...
* concat(null, 2) //=> [2]
* concat(undefined, 2) //=> [2]
* concat(1, null) //=> [1, null]
*
*/
export default _default;