js-combinatorics
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -14,3 +14,3 @@ /** | ||
*/ | ||
export declare const version = "1.5.0"; | ||
export declare const version = "1.5.1"; | ||
/** | ||
@@ -17,0 +17,0 @@ * BigInt Workaround |
@@ -14,3 +14,3 @@ /** | ||
*/ | ||
export const version = '1.5.0'; | ||
export const version = '1.5.1'; | ||
const _BI = typeof BigInt == 'function' ? BigInt : Number; | ||
@@ -308,6 +308,7 @@ /** | ||
return undefined; | ||
return this.comb(n).reduce((a, v) => { | ||
const elem = this.seed[v]; | ||
return a.concat(Array.isArray(elem) ? [elem] : elem); | ||
}, []); | ||
var result = []; | ||
for (let i of this.comb(n)) { | ||
result.push(this.seed[i]); | ||
} | ||
return result; | ||
} | ||
@@ -314,0 +315,0 @@ } |
@@ -17,3 +17,3 @@ "use strict"; | ||
*/ | ||
exports.version = '1.5.0'; | ||
exports.version = '1.5.1'; | ||
const _BI = typeof BigInt == 'function' ? BigInt : Number; | ||
@@ -318,6 +318,7 @@ /** | ||
return undefined; | ||
return this.comb(n).reduce((a, v) => { | ||
const elem = this.seed[v]; | ||
return a.concat(Array.isArray(elem) ? [elem] : elem); | ||
}, []); | ||
var result = []; | ||
for (let i of this.comb(n)) { | ||
result.push(this.seed[i]); | ||
} | ||
return result; | ||
} | ||
@@ -324,0 +325,0 @@ } |
{ | ||
"name": "js-combinatorics", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "Simple combinatorics like power set, combination, and permutation in JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "combinatorics.js", |
[![ES2015](https://img.shields.io/badge/JavaScript-ES2015-blue.svg)](http://www.ecma-international.org/ecma-262/6.0/) | ||
[![MIT LiCENSE](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) | ||
[![build status](https://secure.travis-ci.org/dankogai/js-combinatorics.png)](http://travis-ci.org/dankogai/js-combinatorics) | ||
[![build status](https://travis-ci.com/dankogai/js-combinatorics.svg)](http://travis-ci.com/dankogai/js-combinatorics) | ||
@@ -55,3 +55,3 @@ js-combinatorics | ||
```javascript | ||
import * as $C from 'https://cdn.jsdelivr.net/npm/js-combinatorics@1.5.0/combinatorics.min.js'; | ||
import * as $C from 'https://cdn.jsdelivr.net/npm/js-combinatorics@1.5.1/combinatorics.min.js'; | ||
``` | ||
@@ -58,0 +58,0 @@ |
@@ -26,3 +26,3 @@ (function (factory) { | ||
*/ | ||
exports.version = '1.5.0'; | ||
exports.version = '1.5.1'; | ||
const _BI = typeof BigInt == 'function' ? BigInt : Number; | ||
@@ -327,6 +327,7 @@ /** | ||
return undefined; | ||
return this.comb(n).reduce((a, v) => { | ||
const elem = this.seed[v]; | ||
return a.concat(Array.isArray(elem) ? [elem] : elem); | ||
}, []); | ||
var result = []; | ||
for (let i of this.comb(n)) { | ||
result.push(this.seed[i]); | ||
} | ||
return result; | ||
} | ||
@@ -333,0 +334,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1402
78822