Skip to content

Commit aadf1c4

Browse files
committed
Auto-generated commit
1 parent a8bb27b commit aadf1c4

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

.github/.keepalive

-1
This file was deleted.

benchmark/benchmark.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ bench( pkg+'::primitives', function benchmark( b ) {
5353
b.tic();
5454
for ( i = 0; i < b.iterations; i++ ) {
5555
bool = isNonPositiveInteger( values[ i % values.length ] );
56-
if ( !isBoolean( bool ) ) {
56+
if ( typeof bool !== 'boolean' ) {
5757
b.fail( 'should return a boolean' );
5858
}
5959
}
@@ -82,7 +82,7 @@ bench( pkg+'::objects', function benchmark( b ) {
8282
b.tic();
8383
for ( i = 0; i < b.iterations; i++ ) {
8484
bool = isNonPositiveInteger( values[ i % values.length ] );
85-
if ( !isBoolean( bool ) ) {
85+
if ( typeof bool !== 'boolean' ) {
8686
b.fail( 'should return a boolean' );
8787
}
8888
}
@@ -116,7 +116,7 @@ bench( pkg+'::primitives:isPrimitive', function benchmark( b ) {
116116
b.tic();
117117
for ( i = 0; i < b.iterations; i++ ) {
118118
bool = isNonPositiveInteger.isPrimitive( values[ i % values.length ] );
119-
if ( !isBoolean( bool ) ) {
119+
if ( typeof bool !== 'boolean' ) {
120120
b.fail( 'should return a boolean' );
121121
}
122122
}
@@ -145,7 +145,7 @@ bench( pkg+'::objects:isPrimitive', function benchmark( b ) {
145145
b.tic();
146146
for ( i = 0; i < b.iterations; i++ ) {
147147
bool = isNonPositiveInteger.isPrimitive( values[ i % values.length ] );
148-
if ( !isBoolean( bool ) ) {
148+
if ( typeof bool !== 'boolean' ) {
149149
b.fail( 'should return a boolean' );
150150
}
151151
}
@@ -179,7 +179,7 @@ bench( pkg+'::primitives:isObject', function benchmark( b ) {
179179
b.tic();
180180
for ( i = 0; i < b.iterations; i++ ) {
181181
bool = isNonPositiveInteger.isObject( values[ i % values.length ] );
182-
if ( !isBoolean( bool ) ) {
182+
if ( typeof bool !== 'boolean' ) {
183183
b.fail( 'should return a boolean' );
184184
}
185185
}
@@ -208,7 +208,7 @@ bench( pkg+'::objects:isObject', function benchmark( b ) {
208208
b.tic();
209209
for ( i = 0; i < b.iterations; i++ ) {
210210
bool = isNonPositiveInteger.isObject( values[ i % values.length ] );
211-
if ( !isBoolean( bool ) ) {
211+
if ( typeof bool !== 'boolean' ) {
212212
b.fail( 'should return a boolean' );
213213
}
214214
}

lib/index.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,17 @@
6363
// MODULES //
6464

6565
var setReadOnly = require( '@stdlib/utils-define-nonenumerable-read-only-property' );
66-
var isNonPositiveInteger = require( './main.js' );
66+
var main = require( './main.js' );
6767
var isPrimitive = require( './primitive.js' );
6868
var isObject = require( './object.js' );
6969

7070

7171
// MAIN //
7272

73-
setReadOnly( isNonPositiveInteger, 'isPrimitive', isPrimitive );
74-
setReadOnly( isNonPositiveInteger, 'isObject', isObject );
73+
setReadOnly( main, 'isPrimitive', isPrimitive );
74+
setReadOnly( main, 'isObject', isObject );
7575

7676

7777
// EXPORTS //
7878

79-
module.exports = isNonPositiveInteger;
79+
module.exports = main;

0 commit comments

Comments
 (0)