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

@josecarlosrz/array-helper

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@josecarlosrz/array-helper - npm Package Compare versions

Comparing version 1.0.14 to 1.0.15

12

index.js

@@ -227,2 +227,14 @@ const shuffle = require('./shuffle');

static chunk(array, chunks = 2)
{
const chunksArray = [];
for (let i = 0; i < array.length; i += chunks)
chunksArray.push(array.slice(i, i + chunks));
return chunksArray;
}
static unique(array)

@@ -229,0 +241,0 @@ {

2

package.json
{
"name": "@josecarlosrz/array-helper",
"version": "1.0.14",
"version": "1.0.15",
"description": "Array helper to have async behavior and some util methods",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -18,2 +18,6 @@ const ArrayHelper = require('./');

const bigArray = [1, 2, 3, 4, 5, 6, 7, 8, 9];
console.log(ArrayHelper.chunk(bigArray));
let i = 1;

@@ -20,0 +24,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