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

chance

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chance - npm Package Compare versions

Comparing version 1.0.15 to 1.0.16

2

bower.json
{
"name": "chance",
"version": "1.0.15",
"version": "1.0.16",
"main": "chance.js",

@@ -5,0 +5,0 @@ "ignore": [

{
"name": "chance",
"main": "./chance.js",
"version": "1.0.15",
"version": "1.0.16",
"description": "Chance - Utility library to generate anything random",

@@ -6,0 +6,0 @@ "homepage": "http://chancejs.com",

@@ -157,2 +157,13 @@ import test from 'ava'

test('pickset() returns unique values', t => {
let arr = ['a', 'b', 'c', 'd']
_.times(1000, () => {
let picked = chance.pickset(arr, 4)
t.not(picked.indexOf('a'), -1)
t.not(picked.indexOf('b'), -1)
t.not(picked.indexOf('c'), -1)
t.not(picked.indexOf('d'), -1)
})
})
// chance.shuffle()

@@ -159,0 +170,0 @@ test('shuffle() returns an array of the same size', t => {

Sorry, the diff of this file is too big to display

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