Skip to main content
Module

x/rambda/concat.js

Faster and smaller alternative to Ramda
Go to Latest
File
export function concat(x, y){ if (arguments.length === 1) return _y => concat(x, _y)
return typeof x === 'string' ? `${ x }${ y }` : [ ...x, ...y ]}