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

js-combinatorics

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-combinatorics - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

test/C.js

12

combinatorics.js

@@ -22,11 +22,6 @@ /*

'use strict';
var version = "0.5.1";
var version = "0.5.2";
/* combinatory arithmetics */
var P = function(m, n) {
var t, p = 1;
if (m < n) {
t = m;
m = n;
n = t;
}
var p = 1;
while (n--) p *= m--;

@@ -36,2 +31,5 @@ return p;

var C = function(m, n) {
if (n > m) {
return 0;
}
return P(m, n) / P(n, n);

@@ -38,0 +36,0 @@ };

Package.describe({
name: 'jandres:js-combinatorics',
version: '0.5.1',
version: '0.5.2',
// Brief, one-line summary of the package.

@@ -5,0 +5,0 @@ summary: 'power set, combination, permutation and more in JavaScript',

{
"name": "js-combinatorics",
"version": "0.5.1",
"version": "0.5.2",
"description": "Simple combinatorics like power set, combination, and permutation in JavaScript",

@@ -5,0 +5,0 @@ "main": "combinatorics.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