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

@gitrows/gitrows-utils

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gitrows/gitrows-utils - npm Package Compare versions

Comparing version 0.3.12 to 0.3.13

10

lib/data.js

@@ -333,5 +333,13 @@ const Data={

return arr[arr.length-1];
}
},
pad : (arr,length,fill,from='left') => from==='left'?[...Array(length-arr.length).fill(fill), ...arr]:[ ...arr,...Array(length-arr.length).fill(fill)],
chunk : (arr,size) => arr.reduce((all,one,i) => {
const ch = Math.floor(i/size);
all[ch] = [].concat((all[ch]||[]),one);
return all
}, []),
}
module.exports=Data;

@@ -22,4 +22,7 @@ const Num={

},
rand : (min,max) => Math.random() * (max - min) + min,
randSeries : (min,max,length) => Array.from({length: length}, ()=>Num.rand(min,max)),
randIntSeries : (min,max,length) => Num.randSeries(min,max,length).map(x=>Math.floor(x)),
}
module.exports=Num;

2

package.json
{
"name": "@gitrows/gitrows-utils",
"version": "0.3.12",
"version": "0.3.13",
"description": "Data and string handling utilities for @gitrows",

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

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