Skip to content

Commit 6498806

Browse files
committed
Auto-generated commit
1 parent f94dd55 commit 6498806

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

.github/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

benchmark/benchmark.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ bench( pkg+'::primitives', function benchmark( b ) {
4949
b.tic();
5050
for ( i = 0; i < b.iterations; i++ ) {
5151
bool = isEmptyString( values[ i % values.length ] );
52-
if ( !isBoolean( bool ) ) {
52+
if ( typeof bool !== 'boolean' ) {
5353
b.fail( 'should return a boolean' );
5454
}
5555
}
@@ -76,7 +76,7 @@ bench( pkg+'::objects', function benchmark( b ) {
7676
b.tic();
7777
for ( i = 0; i < b.iterations; i++ ) {
7878
bool = isEmptyString( values[ i % values.length ] );
79-
if ( !isBoolean( bool ) ) {
79+
if ( typeof bool !== 'boolean' ) {
8080
b.fail( 'should return a boolean' );
8181
}
8282
}
@@ -107,7 +107,7 @@ bench( pkg+'::primitives:isPrimitive', function benchmark( b ) {
107107
b.tic();
108108
for ( i = 0; i < b.iterations; i++ ) {
109109
bool = isEmptyString.isPrimitive( values[ i % values.length ] );
110-
if ( !isBoolean( bool ) ) {
110+
if ( typeof bool !== 'boolean' ) {
111111
b.fail( 'should return a boolean' );
112112
}
113113
}
@@ -134,7 +134,7 @@ bench( pkg+'::objects:isPrimitive', function benchmark( b ) {
134134
b.tic();
135135
for ( i = 0; i < b.iterations; i++ ) {
136136
bool = isEmptyString.isPrimitive( values[ i % values.length ] );
137-
if ( !isBoolean( bool ) ) {
137+
if ( typeof bool !== 'boolean' ) {
138138
b.fail( 'should return a boolean' );
139139
}
140140
}
@@ -165,7 +165,7 @@ bench( pkg+'::primitives:isObject', function benchmark( b ) {
165165
b.tic();
166166
for ( i = 0; i < b.iterations; i++ ) {
167167
bool = isEmptyString.isObject( values[ i % values.length ] );
168-
if ( !isBoolean( bool ) ) {
168+
if ( typeof bool !== 'boolean' ) {
169169
b.fail( 'should return a boolean' );
170170
}
171171
}
@@ -192,7 +192,7 @@ bench( pkg+'::objects:isObject', function benchmark( b ) {
192192
b.tic();
193193
for ( i = 0; i < b.iterations; i++ ) {
194194
bool = isEmptyString.isObject( values[ i % values.length ] );
195-
if ( !isBoolean( bool ) ) {
195+
if ( typeof bool !== 'boolean' ) {
196196
b.fail( 'should return a boolean' );
197197
}
198198
}

lib/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,17 @@
5757
// MODULES //
5858

5959
var setReadOnly = require( '@stdlib/utils-define-nonenumerable-read-only-property' );
60-
var isEmptyString = require( './main.js' );
60+
var main = require( './main.js' );
6161
var isPrimitive = require( './primitive.js' );
6262
var isObject = require( './object.js' );
6363

6464

6565
// MAIN //
6666

67-
setReadOnly( isEmptyString, 'isPrimitive', isPrimitive );
68-
setReadOnly( isEmptyString, 'isObject', isObject );
67+
setReadOnly( main, 'isPrimitive', isPrimitive );
68+
setReadOnly( main, 'isObject', isObject );
6969

7070

7171
// EXPORTS //
7272

73-
module.exports = isEmptyString;
73+
module.exports = main;

0 commit comments

Comments
 (0)