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 1515* See the License for the specific language governing permissions and
1616* limitations under the License.
1717*/
18-
19- /* eslint-disable no-new-wrappers, no-undefined, no-empty-function */
20-
2118'use strict' ;
2219
2320// MODULES //
@@ -47,7 +44,7 @@ bench( pkg+'::primitives', function benchmark( b ) {
4744 true ,
4845 false ,
4946 null ,
50- undefined
47+ void 0
5148 ] ;
5249
5350 b . tic ( ) ;
@@ -73,7 +70,9 @@ bench( pkg+'::objects', function benchmark( b ) {
7370 values = [
7471 [ ] ,
7572 { } ,
76- function noop ( ) { } ,
73+ function noop ( ) {
74+ // No operation.
75+ } ,
7776 new Number ( 2.0 ) ,
7877 new Number ( 3.0 ) ,
7978 new Number ( 3.14 )
@@ -110,7 +109,7 @@ bench( pkg+'::primitives:isPrimitive', function benchmark( b ) {
110109 true ,
111110 false ,
112111 null ,
113- undefined
112+ void 0
114113 ] ;
115114
116115 b . tic ( ) ;
@@ -136,7 +135,9 @@ bench( pkg+'::objects:isPrimitive', function benchmark( b ) {
136135 values = [
137136 [ ] ,
138137 { } ,
139- function noop ( ) { } ,
138+ function noop ( ) {
139+ // No operation.
140+ } ,
140141 new Number ( 2.0 ) ,
141142 new Number ( 3.0 ) ,
142143 new Number ( 3.14 )
@@ -173,7 +174,7 @@ bench( pkg+'::primitives:isObject', function benchmark( b ) {
173174 true ,
174175 false ,
175176 null ,
176- undefined
177+ void 0
177178 ] ;
178179
179180 b . tic ( ) ;
@@ -199,7 +200,9 @@ bench( pkg+'::objects:isObject', function benchmark( b ) {
199200 values = [
200201 [ ] ,
201202 { } ,
202- function noop ( ) { } ,
203+ function noop ( ) {
204+ // No operation.
205+ } ,
203206 new Number ( 2.0 ) ,
204207 new Number ( 3.0 ) ,
205208 new Number ( 3.14 )
You can’t perform that action at this time.
0 commit comments