@micro-js/concat

1.0.0 • Public • Published

concat

Build status Git tag NPM version Code style

Functional version of Array.prototype.concat

Installation

$ npm install @micro-js/concat

Usage

var concat = require('@micro-js/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

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i @micro-js/concat

    Weekly Downloads

    8

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • micro-js