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

join-array

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

join-array - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

dist/join-array.min.js

15

package.json
{
"name": "join-array",
"version": "1.1.1",
"version": "1.1.2",
"description": "Join the elements of an array into a string. Indicate the regular and the last one separator. Indicate the maximum number of items to concatenate.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"start": "webpack --config webpack.dev.js",
"build": "webpack --config webpack.prod.js"
},

@@ -36,3 +38,12 @@ "repository": {

"typeof-properties": "^1.1.1"
},
"devDependencies": {
"babel-core": "^6.26.3",
"babel-loader": "^7.1.5",
"babel-preset-env": "^1.7.0",
"uglifyjs-webpack-plugin": "^1.3.0",
"webpack": "^4.17.1",
"webpack-cli": "^3.1.0",
"webpack-merge": "^4.1.4"
}
}

@@ -12,4 +12,24 @@ # Description

# Installation
### NodeJS
`npm install join-array`
### Browser
Load the `join-array.min.js` file from the `dist` folder into your `.html` file.
The module is accessible as `joinArray` in the window scope.
It is a babel converted and webpack bundled [ES5] module version.
```html
<script src="join-array.min.js"></script>
<script>
var list = joinArray({
array: ['Jasmine', 'Adam', 'Amanda', 'Nicky'],
separator: ', '
});
</script>
```
# Sample
```javascript

@@ -66,3 +86,3 @@ const join = require('join-array');

##### `each` [Function|null] *(optional)*
**Default:** `null`
**Default:** `null`
**Description:** If the `each` is defined, the module loops through each `array` item and calls the [Function] `each` with the following parameters: `each(item, iter, array)`. Use `each` function to modify the value. The **returned** value will be used in the chain.

@@ -69,0 +89,0 @@

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