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

pedash

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pedash - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

8

index.js

@@ -57,5 +57,11 @@ export function getCharCountsByKey(arr) {

export function shuffle(arr) {
if (typeof arr !== "object")
if (typeof arr !== "object") {
throw new Error("Please input an array as the parameter");
}
if (arr.length < 2) {
throw new Error("At least 2 items needed within the array");
}
return arr.slice().sort(() => Math.random() - 0.5);
}

2

package.json
{
"name": "pedash",
"version": "0.1.2",
"version": "0.1.3",
"description": "A lodash-like javascript helper -- for dummies",

@@ -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