Skip to content

micro-js/concat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

concat

Build status Git tag NPM version Code style

Functional version of Array.prototype.concat

Installation

$ npm install @f/concat

Usage

var concat = require('@f/concat')

concat([1], [2] // -> [1, 2]
concat([1], 2)  // -> [1, 2]

API

concat(a, b)

  • a - Array
  • b - Array or scalar value to concat onto a

Returns: A new array with btacked onto the end of a.

License

MIT