Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
chain-able-deps / dist / typings / array / concat.d.ts
Size: Mime:
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;