We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70f9eec commit 98df580Copy full SHA for 98df580
.github/.keepalive
benchmark/benchmark.js
@@ -61,7 +61,7 @@ function createBenchmark( len ) {
61
// Note: we are testing the worst case scenario where a function must scan the entire array before finding a failing value.
62
x[ len-1 ] = i * 3.14;
63
bool = isUnityProbabilityArray( x );
64
- if ( !isBoolean( bool ) ) {
+ if ( typeof bool !== 'boolean' ) {
65
b.fail( 'should return a boolean' );
66
}
67
lib/index.js
@@ -41,9 +41,9 @@
41
42
// MODULES //
43
44
-var isUnityProbabilityArray = require( './main.js' );
+var main = require( './main.js' );
45
46
47
// EXPORTS //
48
49
-module.exports = isUnityProbabilityArray;
+module.exports = main;
0 commit comments