Socket
Socket
Sign inDemoInstall

array-concat

Package Overview
Dependencies
1
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    array-concat

Returns a new array comprised of the given array's contents with the given value appended.


Version published
Maintainers
1
Install size
11.0 kB
Created

Readme

Source

array-concat

Returns a new array comprised of the given array's contents with the given value appended.

Build Status Code Climate js-standard-style

npm install array-concat --save

You can also use Duo, Bower or download the files manually.

npm stats

npm NPM downloads David

Overview

Returns a new array comprised of the given array's contents with the given value appended. Pass an array as the second argument to append multiple values.

API Example

Pointful
var concat = require('array-concat')
concat(['a', 'b'], ['c', 'd'])
//=> ['a', 'b', 'c', 'd']
Pointfree Style
var concat = require('array-concat')
var list = [['b'], ['c'], ['d']]

list.map(concat(['a']))
//=> [['a', 'b'], ['a', 'c'], ['a', 'd']]

API

concat(list, value)

arguments
  • list (array).
  • value (any).
returns
  • (array) Returns an array comprised of the given array's contents with the given value(s) appended.

Alternatives

Contributing

SEE: contributing.md

Licenses

GitHub license

Keywords

FAQs

Last updated on 27 Dec 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc