File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed
lib/node_modules/@stdlib/assert/is-odd/benchmark Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change 15
15
* See the License for the specific language governing permissions and
16
16
* limitations under the License.
17
17
*/
18
-
19
- /* eslint-disable no-new-wrappers, no-undefined, no-empty-function */
20
-
21
18
'use strict' ;
22
19
23
20
// MODULES //
@@ -47,7 +44,7 @@ bench( pkg+'::primitives', function benchmark( b ) {
47
44
true ,
48
45
false ,
49
46
null ,
50
- undefined
47
+ void 0
51
48
] ;
52
49
53
50
b . tic ( ) ;
@@ -73,7 +70,9 @@ bench( pkg+'::objects', function benchmark( b ) {
73
70
values = [
74
71
[ ] ,
75
72
{ } ,
76
- function noop ( ) { } ,
73
+ function noop ( ) {
74
+ // No operation.
75
+ } ,
77
76
new Number ( 2.0 ) ,
78
77
new Number ( 3.0 ) ,
79
78
new Number ( 3.14 )
@@ -110,7 +109,7 @@ bench( pkg+'::primitives:isPrimitive', function benchmark( b ) {
110
109
true ,
111
110
false ,
112
111
null ,
113
- undefined
112
+ void 0
114
113
] ;
115
114
116
115
b . tic ( ) ;
@@ -136,7 +135,9 @@ bench( pkg+'::objects:isPrimitive', function benchmark( b ) {
136
135
values = [
137
136
[ ] ,
138
137
{ } ,
139
- function noop ( ) { } ,
138
+ function noop ( ) {
139
+ // No operation.
140
+ } ,
140
141
new Number ( 2.0 ) ,
141
142
new Number ( 3.0 ) ,
142
143
new Number ( 3.14 )
@@ -173,7 +174,7 @@ bench( pkg+'::primitives:isObject', function benchmark( b ) {
173
174
true ,
174
175
false ,
175
176
null ,
176
- undefined
177
+ void 0
177
178
] ;
178
179
179
180
b . tic ( ) ;
@@ -199,7 +200,9 @@ bench( pkg+'::objects:isObject', function benchmark( b ) {
199
200
values = [
200
201
[ ] ,
201
202
{ } ,
202
- function noop ( ) { } ,
203
+ function noop ( ) {
204
+ // No operation.
205
+ } ,
203
206
new Number ( 2.0 ) ,
204
207
new Number ( 3.0 ) ,
205
208
new Number ( 3.14 )
You can’t perform that action at this time.
0 commit comments