Skip to content

Commit 4f07b47

Browse files
committed
Auto-generated commit
1 parent 096b1d7 commit 4f07b47

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
@@ -54,7 +54,7 @@ bench( pkg+'::primitives', function benchmark( b ) {
5454
b.tic();
5555
for ( i = 0; i < b.iterations; i++ ) {
5656
bool = isSafeInteger( values[ i % values.length ] );
57-
if ( !isBoolean( bool ) ) {
57+
if ( typeof bool !== 'boolean' ) {
5858
b.fail( 'should return a boolean' );
5959
}
6060
}
@@ -84,7 +84,7 @@ bench( pkg+'::objects', function benchmark( b ) {
8484
b.tic();
8585
for ( i = 0; i < b.iterations; i++ ) {
8686
bool = isSafeInteger( values[ i % values.length ] );
87-
if ( !isBoolean( bool ) ) {
87+
if ( typeof bool !== 'boolean' ) {
8888
b.fail( 'should return a boolean' );
8989
}
9090
}
@@ -119,7 +119,7 @@ bench( pkg+'::primitives:isPrimitive', function benchmark( b ) {
119119
b.tic();
120120
for ( i = 0; i < b.iterations; i++ ) {
121121
bool = isSafeInteger.isPrimitive( values[ i % values.length ] );
122-
if ( !isBoolean( bool ) ) {
122+
if ( typeof bool !== 'boolean' ) {
123123
b.fail( 'should return a boolean' );
124124
}
125125
}
@@ -149,7 +149,7 @@ bench( pkg+'::objects:isPrimitive', function benchmark( b ) {
149149
b.tic();
150150
for ( i = 0; i < b.iterations; i++ ) {
151151
bool = isSafeInteger.isPrimitive( values[ i % values.length ] );
152-
if ( !isBoolean( bool ) ) {
152+
if ( typeof bool !== 'boolean' ) {
153153
b.fail( 'should return a boolean' );
154154
}
155155
}
@@ -184,7 +184,7 @@ bench( pkg+'::primitives:isObject', function benchmark( b ) {
184184
b.tic();
185185
for ( i = 0; i < b.iterations; i++ ) {
186186
bool = isSafeInteger.isObject( values[ i % values.length ] );
187-
if ( !isBoolean( bool ) ) {
187+
if ( typeof bool !== 'boolean' ) {
188188
b.fail( 'should return a boolean' );
189189
}
190190
}
@@ -214,7 +214,7 @@ bench( pkg+'::objects:isObject', function benchmark( b ) {
214214
b.tic();
215215
for ( i = 0; i < b.iterations; i++ ) {
216216
bool = isSafeInteger.isObject( values[ i % values.length ] );
217-
if ( !isBoolean( bool ) ) {
217+
if ( typeof bool !== 'boolean' ) {
218218
b.fail( 'should return a boolean' );
219219
}
220220
}

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 isSafeInteger = 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( isSafeInteger, 'isPrimitive', isPrimitive );
74-
setReadOnly( isSafeInteger, 'isObject', isObject );
73+
setReadOnly( main, 'isPrimitive', isPrimitive );
74+
setReadOnly( main, 'isObject', isObject );
7575

7676

7777
// EXPORTS //
7878

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

0 commit comments

Comments
 (0)