Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

array-concat

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

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.

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
37
increased by640%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 27 Dec 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc