From f0ab421ad01ff91469c1aa2b6fd8bb2a59afcae2 Mon Sep 17 00:00:00 2001 From: Spandan Barve <114365550+marsian83@users.noreply.github.com> Date: Fri, 23 Feb 2024 13:47:47 +0530 Subject: [PATCH 01/26] feat : add @stdlib/assert/is-nonnegative-finite --- .../assert/is-nonnegative-finite/README.md | 164 +++++++++++++ .../benchmark/benchmark.js | 228 ++++++++++++++++++ .../is-nonnegative-finite/docs/repl.txt | 77 ++++++ .../docs/types/index.d.ts | 142 +++++++++++ .../is-nonnegative-finite/docs/types/test.ts | 61 +++++ .../is-nonnegative-finite/examples/index.js | 51 ++++ .../assert/is-nonnegative-finite/lib/index.js | 85 +++++++ .../assert/is-nonnegative-finite/lib/main.js | 66 +++++ .../is-nonnegative-finite/lib/object.js | 62 +++++ .../is-nonnegative-finite/lib/primitive.js | 61 +++++ .../assert/is-nonnegative-finite/package.json | 73 ++++++ .../assert/is-nonnegative-finite/test/test.js | 43 ++++ .../is-nonnegative-finite/test/test.main.js | 64 +++++ .../is-nonnegative-finite/test/test.object.js | 74 ++++++ .../test/test.primitive.js | 76 ++++++ 15 files changed, 1327 insertions(+) create mode 100644 lib/node_modules/@stdlib/assert/is-nonnegative-finite/README.md create mode 100644 lib/node_modules/@stdlib/assert/is-nonnegative-finite/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/assert/is-nonnegative-finite/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/assert/is-nonnegative-finite/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/assert/is-nonnegative-finite/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/assert/is-nonnegative-finite/examples/index.js create mode 100644 lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/index.js create mode 100644 lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/main.js create mode 100644 lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/object.js create mode 100644 lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/primitive.js create mode 100644 lib/node_modules/@stdlib/assert/is-nonnegative-finite/package.json create mode 100644 lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.js create mode 100644 lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.main.js create mode 100644 lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.object.js create mode 100644 lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.primitive.js diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/README.md b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/README.md new file mode 100644 index 000000000000..66ddc6013161 --- /dev/null +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/README.md @@ -0,0 +1,164 @@ + + +# isNonNegativeFinite + +> Test if a value is a number having a nonnegative finite value. + +
+ +## Usage + +```javascript +var isNonNegativeFinite = require( '@stdlib/assert/is-nonnegative-finite' ); +``` + +#### isNonNegativeFinite( value ) + +Tests if a `value` is a `number` having a nonnegative finite value. + + + +```javascript +var Number = require( '@stdlib/number/ctor' ); + +var bool = isNonNegativeFinite( 5.0 ); +// returns true + +bool = isNonNegativeFinite( new Number( 5.0 ) ); +// returns true + +bool = isNonNegativeFinite( 3.14 ); +// returns true + +bool = isNonNegativeFinite( -5.0 ); +// returns false + +bool = isNonNegativeFinite( null ); +// returns false + +bool = isNonNegativeFinite( Infinity ); +// returns false +``` + +#### isNonNegativeFinite.isPrimitive( value ) + +Tests if a `value` is a primitive `number` having a nonnegative finite value. + + + +```javascript +var Number = require( '@stdlib/number/ctor' ); + +var bool = isNonNegativeFinite.isPrimitive( 3.0 ); +// returns true + +bool = isNonNegativeFinite.isPrimitive( new Number( 3.0 ) ); +// returns false +``` + +#### isNonNegativeFinite.isObject( value ) + +Tests if a `value` is a `Number` object having a nonnegative finite value. + + + +```javascript +var Number = require( '@stdlib/number/ctor' ); + +var bool = isNonNegativeFinite.isObject( 3.0 ); +// returns false + +bool = isNonNegativeFinite.isObject( new Number( 3.0 ) ); +// returns true +``` + +
+ + + +
+ +## Examples + + + + + +```javascript +var Number = require( '@stdlib/number/ctor' ); +var isNonNegativeFinite = require( '@stdlib/assert/is-nonnegative-finite' ); + +var bool = isNonNegativeFinite( 5.0 ); +// returns true + +bool = isNonNegativeFinite( new Number( 5.0 ) ); +// returns true + +bool = isNonNegativeFinite( 0.0 ); +// returns true + +bool = isNonNegativeFinite( 3.14 ); +// returns true + +bool = isNonNegativeFinite( -5.0 ); +// returns false + +bool = isNonNegativeFinite( '5' ); +// returns false + +bool = isNonNegativeFinite( null ); +// returns false +``` + +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/benchmark/benchmark.js b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/benchmark/benchmark.js new file mode 100644 index 000000000000..e8031c877e5e --- /dev/null +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/benchmark/benchmark.js @@ -0,0 +1,228 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2018 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +/* eslint-disable no-new-wrappers, no-undefined, no-empty-function */ + +'use strict'; + +// MODULES // + +var bench = require( '@stdlib/bench' ); +var Number = require( '@stdlib/number/ctor' ); +var isBoolean = require( '@stdlib/assert/is-boolean' ).isPrimitive; +var pkg = require( './../package.json' ).name; +var isNonNegativeFinite = require( './../lib' ); + + +// MAIN // + +bench( pkg+'::primitives', function benchmark( b ) { + var values; + var bool; + var i; + + values = [ + '5', + 5.0, + 4.0, + 3.14, + -5.0, + -4.0, + NaN, + true, + false, + null, + Infinity, + -Infinity, + undefined + ]; + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + bool = isNonNegativeFinite( values[ i % values.length ] ); + if ( typeof bool !== 'boolean' ) { + b.fail( 'should return a boolean' ); + } + } + b.toc(); + if ( !isBoolean( bool ) ) { + b.fail( 'should return a boolean' ); + } + b.pass( 'benchmark finished' ); + b.end(); +}); + +bench( pkg+'::objects', function benchmark( b ) { + var values; + var bool; + var i; + + values = [ + [], + {}, + function noop() {}, + new Number( 2.0 ), + new Number( -3.0 ), + new Number( 3.14 ) + ]; + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + bool = isNonNegativeFinite( values[ i % values.length ] ); + if ( typeof bool !== 'boolean' ) { + b.fail( 'should return a boolean' ); + } + } + b.toc(); + if ( !isBoolean( bool ) ) { + b.fail( 'should return a boolean' ); + } + b.pass( 'benchmark finished' ); + b.end(); +}); + +bench( pkg+'::primitives:isPrimitive', function benchmark( b ) { + var values; + var bool; + var i; + + values = [ + '5', + 5.0, + 4.0, + 3.14, + -5.0, + -4.0, + NaN, + true, + false, + null, + undefined, + Infinity, + -Infinity + ]; + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + bool = isNonNegativeFinite.isPrimitive( values[ i % values.length ] ); + if ( typeof bool !== 'boolean' ) { + b.fail( 'should return a boolean' ); + } + } + b.toc(); + if ( !isBoolean( bool ) ) { + b.fail( 'should return a boolean' ); + } + b.pass( 'benchmark finished' ); + b.end(); +}); + +bench( pkg+'::objects:isPrimitive', function benchmark( b ) { + var values; + var bool; + var i; + + values = [ + [], + {}, + function noop() {}, + new Number( 2.0 ), + new Number( -3.0 ), + new Number( 3.14 ) + ]; + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + bool = isNonNegativeFinite.isPrimitive( values[ i % values.length ] ); + if ( typeof bool !== 'boolean' ) { + b.fail( 'should return a boolean' ); + } + } + b.toc(); + if ( !isBoolean( bool ) ) { + b.fail( 'should return a boolean' ); + } + b.pass( 'benchmark finished' ); + b.end(); +}); + +bench( pkg+'::primitives:isObject', function benchmark( b ) { + var values; + var bool; + var i; + + values = [ + '5', + 5.0, + 4.0, + 3.14, + -5.0, + -4.0, + NaN, + true, + false, + null, + undefined, + Infinity, + -Infinity + ]; + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + bool = isNonNegativeFinite.isObject( values[ i % values.length ] ); + if ( typeof bool !== 'boolean' ) { + b.fail( 'should return a boolean' ); + } + } + b.toc(); + if ( !isBoolean( bool ) ) { + b.fail( 'should return a boolean' ); + } + b.pass( 'benchmark finished' ); + b.end(); +}); + +bench( pkg+'::objects:isObject', function benchmark( b ) { + var values; + var bool; + var i; + + values = [ + [], + {}, + function noop() {}, + new Number( 2.0 ), + new Number( -3.0 ), + new Number( 3.14 ), + new Number( Infinity ) + ]; + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + bool = isNonNegativeFinite.isObject( values[ i % values.length ] ); + if ( typeof bool !== 'boolean' ) { + b.fail( 'should return a boolean' ); + } + } + b.toc(); + if ( !isBoolean( bool ) ) { + b.fail( 'should return a boolean' ); + } + b.pass( 'benchmark finished' ); + b.end(); +}); diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/docs/repl.txt b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/docs/repl.txt new file mode 100644 index 000000000000..b2b7f56b2c0a --- /dev/null +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/docs/repl.txt @@ -0,0 +1,77 @@ + +{{alias}}( value ) + Tests if a value is a nonnegative finite number. + + Parameters + ---------- + value: any + Value to test. + + Returns + ------- + bool: boolean + Boolean indicating whether value is a nonnegative finite number. + + Examples + -------- + > var bool = {{alias}}( 5.0 ) + true + > bool = {{alias}}( new Number( 5.0 ) ) + true + > bool = {{alias}}( 3.14 ) + true + > bool = {{alias}}( -5.0 ) + false + > bool = {{alias}}( null ) + false + > bool = {{alias}}( Infinity ) + false + + +{{alias}}.isPrimitive( value ) + Tests if a value is a number primitive having a nonnegative finite value. + + Parameters + ---------- + value: any + Value to test. + + Returns + ------- + bool: boolean + Boolean indicating whether value is a number primitive having a + nonnegative finite value. + + Examples + -------- + > var bool = {{alias}}.isPrimitive( 3.0 ) + true + > bool = {{alias}}.isPrimitive( new Number( 3.0 ) ) + false + + +{{alias}}.isObject( value ) + Tests if a value is a number object having a nonnegative finite value. + + Parameters + ---------- + value: any + Value to test. + + Returns + ------- + bool: boolean + Boolean indicating whether value is a number object having a nonnegative finite + value. + + Examples + -------- + > var bool = {{alias}}.isObject( 3.0 ) + false + > bool = {{alias}}.isObject( new Number( 3.0 ) ) + true + + + See Also + -------- + diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/docs/types/index.d.ts b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/docs/types/index.d.ts new file mode 100644 index 000000000000..a994cdc7ffc5 --- /dev/null +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/docs/types/index.d.ts @@ -0,0 +1,142 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2019 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +// TypeScript Version: 4.1 + +/** +* Interface defining `isNonNegativeFinite` with methods for testing for primitives and objects, respectively. +*/ +interface IsNonNegativeFinite { + /** + * Tests if a value is a nonnegative finite number. + * + * @param {*} value - value to test + * @returns {boolean} boolean indicating whether value is a nonnegative number + * + * @example + * var bool = isNonNegativeFinite( 5.0 ); + * // returns true + * + * @example + * var bool = isNonNegativeFinite( new Number( 5.0 ) ); + * // returns true + * + * @example + * var bool = isNonNegativeFinite( 3.14 ); + * // returns true + * + * @example + * var bool = isNonNegativeFinite( Infinity ); + * // returns false + * + * @example + * var bool = isNonNegativeFinite( -5.0 ); + * // returns false + * + * @example + * var bool = isNonNegativeFinite( null ); + * // returns false + */ + ( value: any ): value is number | Number; + + /** + * Tests if a value is a number primitive having a nonnegative finite value. + * + * @param {*} value - value to test + * @returns {boolean} boolean indicating if a value is a number primitive having a nonnegative finite value + * + * @example + * var bool = isNonNegativeNumber( 3.0 ); + * // returns true + * + * @example + * var bool = isNonNegativeNumber( new Number( 3.0 ) ); + * // returns false + * + * @example + * var bool = isNonNegativeFinite( new Number( -5.0 ) ); + * // returns false + * + * @example + * var bool = isNonNegativeFinite( Infinity ); + * // returns false + */ + isPrimitive( value: any ): value is number; + + /** + * Tests if a value is a finite number object having a nonnegative value. + * + * @param {*} value - value to test + * @returns {boolean} boolean indicating if a value is a number object having a nonnegative finite number value + * + * @example + * var bool = isNonNegativeFinite( 3.0 ); + * // returns false + * + * @example + * var bool = isNonNegativeFinite( new Number( 3.0 ) ); + * // returns true + * + * @example + * var bool = isNonNegativeFinite( new Number( -5.0 ) ); + * // returns false + * + * @example + * var bool = isNonNegativeFinite( Infinity ); + * // returns false + */ + isObject( value: any ): value is Number; +} + +/** +* Tests if a value is a nonnegative finite number. +* +* @param {*} value - value to test +* @returns {boolean} boolean indicating whether value is a nonnegative number +* +* @example +* var bool = isNonNegativeFinite( 5.0 ); +* // returns true +* +* @example +* var bool = isNonNegativeFinite( new Number( 5.0 ) ); +* // returns true +* +* @example +* var bool = isNonNegativeFinite( 3.14 ); +* // returns true +* +* @example +* var bool = isNonNegativeFinite( Infinity ); +* // returns false +* +* @example +* var bool = isNonNegativeFinite( -5.0 ); +* // returns false +* +* @example +* var bool = isNonNegativeFinite( null ); +* // returns false +*/ + +declare var isNonNegativeFinite: IsNonNegativeFinite; + + +// EXPORTS // + +export = isNonNegativeFinite; diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/docs/types/test.ts b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/docs/types/test.ts new file mode 100644 index 000000000000..cff2244810fe --- /dev/null +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/docs/types/test.ts @@ -0,0 +1,61 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2019 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +import isNonNegativeFinite = require( './index' ); + + +// TESTS // + +// The function returns a boolean... +{ + isNonNegativeFinite( 1.2 ); // $ExpectType boolean + isNonNegativeFinite( -1.2 ); // $ExpectType boolean +} + +// The compiler throws an error if the function is provided an unsupported number of arguments... +{ + isNonNegativeFinite(); // $ExpectError + isNonNegativeFinite( 2, 123 ); // $ExpectError +} + +// Attached to main export is an isPrimitive method which returns a boolean... +{ + // eslint-disable-next-line no-new-wrappers + isNonNegativeFinite.isPrimitive( new Number( 2 ) ); // $ExpectType boolean + isNonNegativeFinite.isPrimitive( 2 ); // $ExpectType boolean +} + +// The compiler throws an error if the isPrimitive method is provided an unsupported number of arguments... +{ + isNonNegativeFinite.isPrimitive(); // $ExpectError + isNonNegativeFinite.isPrimitive( 2, 123 ); // $ExpectError +} + + +// Attached to main export is an isPrimitive method which returns a boolean... +{ + // eslint-disable-next-line no-new-wrappers + isNonNegativeFinite.isObject( new Number( 2 ) ); // $ExpectType boolean + isNonNegativeFinite.isObject( 2 ); // $ExpectType boolean +} + +// The compiler throws an error if the isObject method is provided an unsupported number of arguments... +{ + isNonNegativeFinite.isObject(); // $ExpectError + isNonNegativeFinite.isObject( 2, 123 ); // $ExpectError +} diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/examples/index.js b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/examples/index.js new file mode 100644 index 000000000000..42807ff03c29 --- /dev/null +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/examples/index.js @@ -0,0 +1,51 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2018 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +/* eslint-disable no-new-wrappers */ + +'use strict'; + +var Number = require( '@stdlib/number/ctor' ); +var isNonNegativeFinite = require( './../lib' ); + +console.log( isNonNegativeFinite( 5.0 ) ); +// => true + +console.log( isNonNegativeFinite( new Number( 5.0 ) ) ); +// => true + +console.log( isNonNegativeFinite( new Number( Infinity ) ) ); +// => false + +console.log( isNonNegativeFinite( Infinity ) ); +// => false + +console.log( isNonNegativeFinite( 0.0 ) ); +// => true + +console.log( isNonNegativeFinite( 3.14 ) ); +// => true + +console.log( isNonNegativeFinite( -5.0 ) ); +// => false + +console.log( isNonNegativeFinite( '5' ) ); +// => false + +console.log( isNonNegativeFinite( null ) ); +// => false diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/index.js b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/index.js new file mode 100644 index 000000000000..47dbe4c5524e --- /dev/null +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/index.js @@ -0,0 +1,85 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2018 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +/** +* Test if a value is a nonnegative finite number. +* +* @module @stdlib/assert/is-nonnegative-finite +* +* @example +* var isNonNegativeFinite = require( '@stdlib/assert/is-nonnegative-finite' ); +* +* var bool = isNonNegativeFinite( 5.0 ); +* // returns true +* +* bool = isNonNegativeFinite( new Number( 5.0 ) ); +* // returns true +* +* bool = isNonNegativeFinite( 3.14 ); +* // returns true +* +* var bool = isNonNegativeFinite( Infinity ); +* // returns false +* +* bool = isNonNegativeFinite( -5.0 ); +* // returns false +* +* bool = isNonNegativeFinite( null ); +* // returns false +* +* @example +* var isNonNegativeFinite = require( '@stdlib/assert/is-nonnegative-finite' ).isPrimitive; +* +* var bool = isNonNegativeFinite( 3.0 ); +* // returns true +* +* bool = isNonNegativeFinite( new Number( 3.0 ) ); +* // returns false +* +* @example +* var isNonNegativeFinite = require( '@stdlib/assert/is-nonnegative-finite' ).isObject; +* +* var bool = isNonNegativeFinite( 3.0 ); +* // returns false +* +* var bool = isNonNegativeFinite( Infinity ); +* // returns false +* +* bool = isNonNegativeFinite( new Number( 3.0 ) ); +* // returns true +*/ + +// MODULES // + +var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' ); +var main = require( './main.js' ); +var isPrimitive = require( './primitive.js' ); +var isObject = require( './object.js' ); + + +// MAIN // + +setReadOnly( main, 'isPrimitive', isPrimitive ); +setReadOnly( main, 'isObject', isObject ); + + +// EXPORTS // + +module.exports = main; diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/main.js b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/main.js new file mode 100644 index 000000000000..7198916ccfc5 --- /dev/null +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/main.js @@ -0,0 +1,66 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2018 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var isPrimitive = require( './primitive.js' ); +var isObject = require( './object.js' ); + + +// MAIN // + +/** +* Tests if a value is a nonnegative finite number. +* +* @param {*} value - value to test +* @returns {boolean} boolean indicating whether value is a nonnegative number +* +* @example +* var bool = isNonNegativeFinite( 5.0 ); +* // returns true +* +* @example +* var bool = isNonNegativeFinite( new Number( 5.0 ) ); +* // returns true +* +* @example +* var bool = isNonNegativeFinite( 3.14 ); +* // returns true +* +* @example +* var bool = isNonNegativeFinite( Infinity ); +* // returns false +* +* @example +* var bool = isNonNegativeFinite( -5.0 ); +* // returns false +* +* @example +* var bool = isNonNegativeFinite( null ); +* // returns false +*/ +function isNonNegativeFinite( value ) { + return ( isPrimitive( value ) || isObject( value ) ); +} + + +// EXPORTS // + +module.exports = isNonNegativeFinite; diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/object.js b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/object.js new file mode 100644 index 000000000000..5f4716d449af --- /dev/null +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/object.js @@ -0,0 +1,62 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2018 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var isNonNegativeNumber = require( '@stdlib/assert/is-nonnegative-number').isObject +var isFinite = require( '@stdlib/assert/is-finite' ).isObject; + + +// MAIN // + +/** +* Tests if a value is a finite number object having a nonnegative value. +* +* @param {*} value - value to test +* @returns {boolean} boolean indicating if a value is a number object having a nonnegative finite number value +* +* @example +* var bool = isNonNegativeFinite( 3.0 ); +* // returns false +* +* @example +* var bool = isNonNegativeFinite( new Number( 3.0 ) ); +* // returns true +* +* @example +* var bool = isNonNegativeFinite( new Number( -5.0 ) ); +* // returns false +* +* @example +* var bool = isNonNegativeFinite( Infinity ); +* // returns false +*/ + +function isNonNegativeFinite( value ) { + return ( + isNonNegativeNumber( value ) && + isFinite( value ) + ); +} + + +// EXPORTS // + +module.exports = isNonNegativeFinite; diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/primitive.js b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/primitive.js new file mode 100644 index 000000000000..38d062f56a5a --- /dev/null +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/primitive.js @@ -0,0 +1,61 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2018 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var isNonNegativeNumber = require( '@stdlib/assert/is-nonnegative-number' ).isPrimitive; +var isFinite = require( '@stdlib/assert/is-finite' ).isPrimitive; + + +// MAIN // + +/** +* Tests if a value is a number primitive having a nonnegative finite value. +* +* @param {*} value - value to test +* @returns {boolean} boolean indicating if a value is a number primitive having a nonnegative finite value +* +* @example +* var bool = isNonNegativeNumber( 3.0 ); +* // returns true +* +* @example +* var bool = isNonNegativeNumber( new Number( 3.0 ) ); +* // returns false +* +* @example +* var bool = isNonNegativeFinite( new Number( -5.0 ) ); +* // returns false +* +* @example +* var bool = isNonNegativeFinite( Infinity ); +* // returns false +*/ +function isNonNegativeFinite( value ) { + return ( + isNonNegativeNumber( value ) && + isFinite( value ) + ); +} + + +// EXPORTS // + +module.exports = isNonNegativeFinite; diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/package.json b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/package.json new file mode 100644 index 000000000000..6473813de253 --- /dev/null +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/package.json @@ -0,0 +1,73 @@ +{ + "name": "@stdlib/assert/is-nonnegative-finite", + "version": "0.0.0", + "description": "Test if a value is a number having a nonnegative finite value.", + "license": "Apache-2.0", + "author": { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + }, + "contributors": [ + { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + } + ], + "main": "./lib", + "directories": { + "benchmark": "./benchmark", + "doc": "./docs", + "example": "./examples", + "lib": "./lib", + "test": "./test" + }, + "types": "./docs/types", + "scripts": {}, + "homepage": "https://github.com/stdlib-js/stdlib", + "repository": { + "type": "git", + "url": "git://github.com/stdlib-js/stdlib.git" + }, + "bugs": { + "url": "https://github.com/stdlib-js/stdlib/issues" + }, + "dependencies": {}, + "devDependencies": {}, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "keywords": [ + "stdlib", + "stdassert", + "assertion", + "assert", + "utilities", + "utility", + "utils", + "util", + "number", + "numeric", + "nonnegative", + "finite", + "nonnegativefinite", + "is", + "isnumber", + "isnumeric", + "type", + "check", + "primitive", + "object" + ] +} diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.js b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.js new file mode 100644 index 000000000000..f46bab14f9c7 --- /dev/null +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.js @@ -0,0 +1,43 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2018 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var isNonNegativeFinite = require( './../lib' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof isNonNegativeFinite, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'attached to the main export is a method to test for a primitive number having a nonnegative number value', function test( t ) { + t.equal( typeof isNonNegativeFinite.isPrimitive, 'function', 'export is a function' ); + t.end(); +}); + +tape( 'attached to the main export is a method to test for a number object having a nonnegative number value', function test( t ) { + t.equal( typeof isNonNegativeFinite.isObject, 'function', 'export is a function' ); + t.end(); +}); diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.main.js b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.main.js new file mode 100644 index 000000000000..c45dddb6fd3c --- /dev/null +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.main.js @@ -0,0 +1,64 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2018 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var Number = require( '@stdlib/number/ctor' ); +var isNonNegativeFinite = require( './../lib/main.js' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof isNonNegativeFinite, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function returns `true` if provided a number having a nonnegative number value', function test( t ) { + t.equal( isNonNegativeFinite( 5.0 ), true, 'returns true' ); + t.equal( isNonNegativeFinite( new Number( 5.0 ) ), true, 'returns true' ); // eslint-disable-line no-new-wrappers + t.end(); +}); + +tape( 'the function returns `false` if not provided a number having a nonnegative finite value', function test( t ) { + var values; + var i; + + values = [ + '5', + -3.14, + -1.0, + null, + true, + void 0, + [], + {}, + function noop() {}, + Infinity, + -Infinity + ]; + + for ( i = 0; i < values.length; i++ ) { + t.equal( isNonNegativeFinite( values[i] ), false, 'returns false when provided '+values[i] ); + } + t.end(); +}); diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.object.js b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.object.js new file mode 100644 index 000000000000..11b2c3138dc1 --- /dev/null +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.object.js @@ -0,0 +1,74 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2018 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var Number = require( '@stdlib/number/ctor' ); +var isNonNegativeFinite = require( './../lib/object.js' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof isNonNegativeFinite, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function returns `true` if provided a number object having a nonnegative number value', function test( t ) { + t.equal( isNonNegativeFinite( new Number( 5.0 ) ), true, 'returns true' ); // eslint-disable-line no-new-wrappers + t.end(); +}); + +tape( 'the function returns `false` if provided Infinity, even if it is positive infinity', function test( t ) { + t.equal( isNonNegativeFinite( Infinity ), false, 'returns false' ); + t.end(); +}); + +tape( 'the function returns `false` if provided Infinity, even if it is positive infinity', function test( t ) { + t.equal( isNonNegativeFinite( Infinity ), false, 'returns false' ); + t.end(); +}); + +tape( 'the function returns `false` if not provided a nonnegative number', function test( t ) { + var values; + var i; + + values = [ + '5', + new Number( -2.0 ), // eslint-disable-line no-new-wrappers + -3.14, + null, + true, + void 0, + [], + {}, + new Date(), + /./, + new RegExp( '.' ), // eslint-disable-line prefer-regex-literals + function noop() {} + ]; + + for ( i = 0; i < values.length; i++ ) { + t.equal( isNonNegativeFinite( values[i] ), false, 'returns false when provided '+values[i] ); + } + t.end(); +}); diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.primitive.js b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.primitive.js new file mode 100644 index 000000000000..a3cdf04e905a --- /dev/null +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.primitive.js @@ -0,0 +1,76 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2018 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var Number = require( '@stdlib/number/ctor' ); +var isNonNegativeFinite = require( './../lib/primitive.js' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof isNonNegativeFinite, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function returns `true` if provided a primitive number having a nonnegative finite value', function test( t ) { + t.equal( isNonNegativeFinite( 3.0 ), true, 'returns true' ); + t.end(); +}); + +tape( 'the function returns `false` if provided a number object, even if the number has a nonnegative finite value', function test( t ) { + t.equal( isNonNegativeFinite( new Number( 5.0 ) ), false, 'returns false' ); + t.end(); +}); + +tape( 'the function returns `false` if provided Infinity, even if it is positive infinity', function test( t ) { + t.equal( isNonNegativeFinite( Infinity ), false, 'returns false' ); + t.end(); +}); + +tape( 'the function returns `false` if provided a number object with Infinity', function test( t ) { + t.equal( isNonNegativeFinite( new Number( Infinity ) ), false, 'returns false' ); + t.end(); +}); + +tape( 'the function returns `false` if not provided a nonnegative finite number', function test( t ) { + var values; + var i; + + values = [ + '5', + new Number( -1.0 ), + -3.14, + null, + true, + void 0, + [], + {}, + function noop() {} + ]; + + for ( i = 0; i < values.length; i++ ) { + t.equal( isNonNegativeFinite( values[i] ), false, 'returns false when provided '+values[i] ); + } + t.end(); +}); From 8a3dea3e1b87342b134331def550051cfa4eff41 Mon Sep 17 00:00:00 2001 From: Spandan Barve <114365550+marsian83@users.noreply.github.com> Date: Fri, 23 Feb 2024 20:07:20 +0530 Subject: [PATCH 02/26] Apply suggestions from code review Co-authored-by: Philipp Burckhardt Signed-off-by: Spandan Barve <114365550+marsian83@users.noreply.github.com> --- lib/node_modules/@stdlib/assert/is-nonnegative-finite/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/README.md b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/README.md index 66ddc6013161..0d2220821cfc 100644 --- a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/README.md +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/README.md @@ -2,7 +2,7 @@ @license Apache-2.0 -Copyright (c) 2018 The Stdlib Authors. +Copyright (c) 2024 The Stdlib Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. From bb65aec0a7593418287a94874eaa03b753432be2 Mon Sep 17 00:00:00 2001 From: Spandan Barve <114365550+marsian83@users.noreply.github.com> Date: Fri, 23 Feb 2024 20:07:47 +0530 Subject: [PATCH 03/26] Apply suggestions from code review Co-authored-by: Philipp Burckhardt Signed-off-by: Spandan Barve <114365550+marsian83@users.noreply.github.com> --- .../@stdlib/assert/is-nonnegative-finite/benchmark/benchmark.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/benchmark/benchmark.js b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/benchmark/benchmark.js index e8031c877e5e..81dfe1fe7d72 100644 --- a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/benchmark/benchmark.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2018 The Stdlib Authors. +* Copyright (c) 2024 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. From 499ce38a5761495bec6a0b5946e70acb03679305 Mon Sep 17 00:00:00 2001 From: Spandan Barve <114365550+marsian83@users.noreply.github.com> Date: Fri, 23 Feb 2024 20:07:59 +0530 Subject: [PATCH 04/26] Apply suggestions from code review Co-authored-by: Philipp Burckhardt Signed-off-by: Spandan Barve <114365550+marsian83@users.noreply.github.com> --- .../@stdlib/assert/is-nonnegative-finite/docs/types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/docs/types/index.d.ts b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/docs/types/index.d.ts index a994cdc7ffc5..fab36f9aec38 100644 --- a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/docs/types/index.d.ts @@ -1,7 +1,7 @@ /* * @license Apache-2.0 * -* Copyright (c) 2019 The Stdlib Authors. +* Copyright (c) 2024 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. From 17084cec4a0699d4f9652f4f02b07155fd042753 Mon Sep 17 00:00:00 2001 From: Spandan Barve <114365550+marsian83@users.noreply.github.com> Date: Fri, 23 Feb 2024 20:08:09 +0530 Subject: [PATCH 05/26] Apply suggestions from code review Co-authored-by: Philipp Burckhardt Signed-off-by: Spandan Barve <114365550+marsian83@users.noreply.github.com> --- .../@stdlib/assert/is-nonnegative-finite/docs/types/test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/docs/types/test.ts b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/docs/types/test.ts index cff2244810fe..56bb8e66c75e 100644 --- a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/docs/types/test.ts +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/docs/types/test.ts @@ -1,7 +1,7 @@ /* * @license Apache-2.0 * -* Copyright (c) 2019 The Stdlib Authors. +* Copyright (c) 2024 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. From 8618d3e398933b371bc771cea140612833d2877c Mon Sep 17 00:00:00 2001 From: Spandan Barve <114365550+marsian83@users.noreply.github.com> Date: Fri, 23 Feb 2024 20:08:24 +0530 Subject: [PATCH 06/26] Apply suggestions from code review Co-authored-by: Philipp Burckhardt Signed-off-by: Spandan Barve <114365550+marsian83@users.noreply.github.com> --- .../@stdlib/assert/is-nonnegative-finite/docs/types/test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/docs/types/test.ts b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/docs/types/test.ts index 56bb8e66c75e..9a0f53d259ee 100644 --- a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/docs/types/test.ts +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/docs/types/test.ts @@ -47,7 +47,7 @@ import isNonNegativeFinite = require( './index' ); } -// Attached to main export is an isPrimitive method which returns a boolean... +// Attached to main export is an isObject method which returns a boolean... { // eslint-disable-next-line no-new-wrappers isNonNegativeFinite.isObject( new Number( 2 ) ); // $ExpectType boolean From daaa20858bb373805ec6758f28d9f05461ce5235 Mon Sep 17 00:00:00 2001 From: Spandan Barve <114365550+marsian83@users.noreply.github.com> Date: Fri, 23 Feb 2024 20:08:47 +0530 Subject: [PATCH 07/26] Apply suggestions from code review Co-authored-by: Philipp Burckhardt Signed-off-by: Spandan Barve <114365550+marsian83@users.noreply.github.com> --- .../@stdlib/assert/is-nonnegative-finite/docs/types/test.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/docs/types/test.ts b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/docs/types/test.ts index 9a0f53d259ee..22b808241a5c 100644 --- a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/docs/types/test.ts +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/docs/types/test.ts @@ -46,7 +46,6 @@ import isNonNegativeFinite = require( './index' ); isNonNegativeFinite.isPrimitive( 2, 123 ); // $ExpectError } - // Attached to main export is an isObject method which returns a boolean... { // eslint-disable-next-line no-new-wrappers From eee19611670fc13a8dc6b78c9109b634c760b065 Mon Sep 17 00:00:00 2001 From: Spandan Barve <114365550+marsian83@users.noreply.github.com> Date: Fri, 23 Feb 2024 20:08:57 +0530 Subject: [PATCH 08/26] Apply suggestions from code review Co-authored-by: Philipp Burckhardt Signed-off-by: Spandan Barve <114365550+marsian83@users.noreply.github.com> --- .../@stdlib/assert/is-nonnegative-finite/lib/primitive.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/primitive.js b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/primitive.js index 38d062f56a5a..3c632055c9f5 100644 --- a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/primitive.js +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/primitive.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2018 The Stdlib Authors. +* Copyright (c) 2024 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. From 5bad53595c1355096bc782d56737df47ed408557 Mon Sep 17 00:00:00 2001 From: Spandan Barve <114365550+marsian83@users.noreply.github.com> Date: Fri, 23 Feb 2024 20:09:07 +0530 Subject: [PATCH 09/26] Apply suggestions from code review Co-authored-by: Philipp Burckhardt Signed-off-by: Spandan Barve <114365550+marsian83@users.noreply.github.com> --- .../@stdlib/assert/is-nonnegative-finite/test/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.js b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.js index f46bab14f9c7..8ff3134e6744 100644 --- a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.js +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2018 The Stdlib Authors. +* Copyright (c) 2024 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. From ced8943d129b88f0182089e5a3e496c4b6276778 Mon Sep 17 00:00:00 2001 From: Spandan Barve <114365550+marsian83@users.noreply.github.com> Date: Fri, 23 Feb 2024 20:09:17 +0530 Subject: [PATCH 10/26] Apply suggestions from code review Co-authored-by: Philipp Burckhardt Signed-off-by: Spandan Barve <114365550+marsian83@users.noreply.github.com> --- .../@stdlib/assert/is-nonnegative-finite/test/test.main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.main.js b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.main.js index c45dddb6fd3c..c8f11527b9d5 100644 --- a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.main.js +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.main.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2018 The Stdlib Authors. +* Copyright (c) 2024 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. From 597ce47118a0334093f50ddb2dccdbbe739531fe Mon Sep 17 00:00:00 2001 From: Spandan Barve <114365550+marsian83@users.noreply.github.com> Date: Fri, 23 Feb 2024 20:09:28 +0530 Subject: [PATCH 11/26] Apply suggestions from code review Co-authored-by: Philipp Burckhardt Signed-off-by: Spandan Barve <114365550+marsian83@users.noreply.github.com> --- .../@stdlib/assert/is-nonnegative-finite/test/test.object.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.object.js b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.object.js index 11b2c3138dc1..08347651518d 100644 --- a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.object.js +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.object.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2018 The Stdlib Authors. +* Copyright (c) 2024 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. From 3ca64fa06a01acc00228bcd0d8b0bbf4f352f927 Mon Sep 17 00:00:00 2001 From: Spandan Barve <114365550+marsian83@users.noreply.github.com> Date: Fri, 23 Feb 2024 20:09:40 +0530 Subject: [PATCH 12/26] Apply suggestions from code review Co-authored-by: Philipp Burckhardt Signed-off-by: Spandan Barve <114365550+marsian83@users.noreply.github.com> --- .../@stdlib/assert/is-nonnegative-finite/test/test.primitive.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.primitive.js b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.primitive.js index a3cdf04e905a..66a22b95caa2 100644 --- a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.primitive.js +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.primitive.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2018 The Stdlib Authors. +* Copyright (c) 2024 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. From 4fcf51abfadad4d38f7b85372310c2f43b51476e Mon Sep 17 00:00:00 2001 From: Spandan Barve <114365550+marsian83@users.noreply.github.com> Date: Fri, 23 Feb 2024 20:10:13 +0530 Subject: [PATCH 13/26] Apply suggestions from code review Co-authored-by: Philipp Burckhardt Signed-off-by: Spandan Barve <114365550+marsian83@users.noreply.github.com> --- .../@stdlib/assert/is-nonnegative-finite/examples/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/examples/index.js b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/examples/index.js index 42807ff03c29..63187c54f5e5 100644 --- a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/examples/index.js +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/examples/index.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2018 The Stdlib Authors. +* Copyright (c) 2024 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. From 25b3163ea1faf88fa62bfdb0c373891a40d04177 Mon Sep 17 00:00:00 2001 From: Spandan Barve <114365550+marsian83@users.noreply.github.com> Date: Fri, 23 Feb 2024 20:10:27 +0530 Subject: [PATCH 14/26] Apply suggestions from code review Co-authored-by: Philipp Burckhardt Signed-off-by: Spandan Barve <114365550+marsian83@users.noreply.github.com> --- .../@stdlib/assert/is-nonnegative-finite/lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/index.js b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/index.js index 47dbe4c5524e..706d596d2a04 100644 --- a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/index.js +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/index.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2018 The Stdlib Authors. +* Copyright (c) 2024 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. From 583f7f6ab24cfd166a11d3ef0ec3304be676adc0 Mon Sep 17 00:00:00 2001 From: Spandan Barve <114365550+marsian83@users.noreply.github.com> Date: Fri, 23 Feb 2024 20:10:42 +0530 Subject: [PATCH 15/26] Apply suggestions from code review Co-authored-by: Philipp Burckhardt Signed-off-by: Spandan Barve <114365550+marsian83@users.noreply.github.com> --- .../@stdlib/assert/is-nonnegative-finite/lib/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/main.js b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/main.js index 7198916ccfc5..cf2e9c51db9e 100644 --- a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/main.js +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/main.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2018 The Stdlib Authors. +* Copyright (c) 2024 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. From 640166e51d40750d110ad6f686487d18194e8af2 Mon Sep 17 00:00:00 2001 From: Spandan Barve <114365550+marsian83@users.noreply.github.com> Date: Fri, 23 Feb 2024 20:10:55 +0530 Subject: [PATCH 16/26] Apply suggestions from code review Co-authored-by: Philipp Burckhardt Signed-off-by: Spandan Barve <114365550+marsian83@users.noreply.github.com> --- .../@stdlib/assert/is-nonnegative-finite/lib/object.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/object.js b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/object.js index 5f4716d449af..661ea6f38f5a 100644 --- a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/object.js +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/object.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2018 The Stdlib Authors. +* Copyright (c) 2024 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. From 0f5e8d15b956fe1858fd8b1cc9cfc5d7fc79642c Mon Sep 17 00:00:00 2001 From: Spandan Barve <114365550+marsian83@users.noreply.github.com> Date: Fri, 23 Feb 2024 22:09:32 +0530 Subject: [PATCH 17/26] Apply suggestions from code review Co-authored-by: Philipp Burckhardt Signed-off-by: Spandan Barve <114365550+marsian83@users.noreply.github.com> --- .../@stdlib/assert/is-nonnegative-finite/lib/object.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/object.js b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/object.js index 661ea6f38f5a..1dd6aeda5257 100644 --- a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/object.js +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/object.js @@ -20,7 +20,7 @@ // MODULES // -var isNonNegativeNumber = require( '@stdlib/assert/is-nonnegative-number').isObject +var isNonNegativeNumber = require( '@stdlib/assert/is-nonnegative-number').isObject; var isFinite = require( '@stdlib/assert/is-finite' ).isObject; From 7e720a10f3ca996cfcf40023b51945ce443dfb02 Mon Sep 17 00:00:00 2001 From: Spandan Barve <114365550+marsian83@users.noreply.github.com> Date: Fri, 23 Feb 2024 22:14:22 +0530 Subject: [PATCH 18/26] Apply suggestions from code review Co-authored-by: Philipp Burckhardt Signed-off-by: Spandan Barve <114365550+marsian83@users.noreply.github.com> --- .../@stdlib/assert/is-nonnegative-finite/lib/object.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/object.js b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/object.js index 1dd6aeda5257..5e4bc226a5a2 100644 --- a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/object.js +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/object.js @@ -21,7 +21,7 @@ // MODULES // var isNonNegativeNumber = require( '@stdlib/assert/is-nonnegative-number').isObject; -var isFinite = require( '@stdlib/assert/is-finite' ).isObject; +var isFinite = require( '@stdlib/assert/is-finite' ).isObject; // eslint-disable-line stdlib/no-redeclare // MAIN // From 33762565d62cb7eb2ec719e697c9f8bf396d4339 Mon Sep 17 00:00:00 2001 From: Spandan Barve <114365550+marsian83@users.noreply.github.com> Date: Fri, 23 Feb 2024 22:14:41 +0530 Subject: [PATCH 19/26] Apply suggestions from code review Co-authored-by: Philipp Burckhardt Signed-off-by: Spandan Barve <114365550+marsian83@users.noreply.github.com> --- .../@stdlib/assert/is-nonnegative-finite/lib/object.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/object.js b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/object.js index 5e4bc226a5a2..ff885483e318 100644 --- a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/object.js +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/object.js @@ -52,7 +52,7 @@ var isFinite = require( '@stdlib/assert/is-finite' ).isObject; // eslint-disable function isNonNegativeFinite( value ) { return ( isNonNegativeNumber( value ) && - isFinite( value ) + isFinite( value ) ); } From 5d533a2cd9e563411be9461aba07dc8924b66977 Mon Sep 17 00:00:00 2001 From: Spandan Barve <114365550+marsian83@users.noreply.github.com> Date: Fri, 23 Feb 2024 22:14:55 +0530 Subject: [PATCH 20/26] Apply suggestions from code review Co-authored-by: Philipp Burckhardt Signed-off-by: Spandan Barve <114365550+marsian83@users.noreply.github.com> --- .../@stdlib/assert/is-nonnegative-finite/lib/primitive.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/primitive.js b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/primitive.js index 3c632055c9f5..118949b77bde 100644 --- a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/primitive.js +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/primitive.js @@ -21,7 +21,7 @@ // MODULES // var isNonNegativeNumber = require( '@stdlib/assert/is-nonnegative-number' ).isPrimitive; -var isFinite = require( '@stdlib/assert/is-finite' ).isPrimitive; +var isFinite = require( '@stdlib/assert/is-finite' ).isPrimitive; // eslint-disable-line stdlib/no-redeclare // MAIN // From dd1e2d4084994433fd47935bd160c5a612f3c628 Mon Sep 17 00:00:00 2001 From: Spandan Barve <114365550+marsian83@users.noreply.github.com> Date: Fri, 23 Feb 2024 22:15:09 +0530 Subject: [PATCH 21/26] Apply suggestions from code review Co-authored-by: Philipp Burckhardt Signed-off-by: Spandan Barve <114365550+marsian83@users.noreply.github.com> --- .../@stdlib/assert/is-nonnegative-finite/lib/object.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/object.js b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/object.js index ff885483e318..df167c365b93 100644 --- a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/object.js +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/object.js @@ -48,7 +48,6 @@ var isFinite = require( '@stdlib/assert/is-finite' ).isObject; // eslint-disable * var bool = isNonNegativeFinite( Infinity ); * // returns false */ - function isNonNegativeFinite( value ) { return ( isNonNegativeNumber( value ) && From 093ee64cb2a6475c22ff7320652164e5cd46e0e3 Mon Sep 17 00:00:00 2001 From: Spandan Barve <114365550+marsian83@users.noreply.github.com> Date: Fri, 23 Feb 2024 22:15:22 +0530 Subject: [PATCH 22/26] Apply suggestions from code review Co-authored-by: Philipp Burckhardt Signed-off-by: Spandan Barve <114365550+marsian83@users.noreply.github.com> --- lib/node_modules/@stdlib/assert/is-nonnegative-finite/README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/README.md b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/README.md index 0d2220821cfc..80703d6c7c63 100644 --- a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/README.md +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/README.md @@ -141,7 +141,6 @@ bool = isNonNegativeFinite( null ); ## See Also - [`@stdlib/assert/is-number`][@stdlib/assert/is-number]: test if a value is a number. - - [`@stdlib/assert/is-finite`][@stdlib/assert/is-finite]: test if a value is a finite number. From 6dd718399f7907373241c9f7d5dcfe4c24511b2f Mon Sep 17 00:00:00 2001 From: Spandan Barve <114365550+marsian83@users.noreply.github.com> Date: Fri, 23 Feb 2024 22:27:35 +0530 Subject: [PATCH 23/26] fold lines in repl.txt Signed-off-by: Spandan Barve <114365550+marsian83@users.noreply.github.com> --- .../@stdlib/assert/is-nonnegative-finite/docs/repl.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/docs/repl.txt b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/docs/repl.txt index b2b7f56b2c0a..0d8022539ef0 100644 --- a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/docs/repl.txt +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/docs/repl.txt @@ -61,8 +61,8 @@ Returns ------- bool: boolean - Boolean indicating whether value is a number object having a nonnegative finite - value. + Boolean indicating whether value is a number object having a + nonnegative finite value. Examples -------- From 338cdce91cc9e952a95273ba133fdfbbbc772863 Mon Sep 17 00:00:00 2001 From: Philipp Burckhardt Date: Fri, 23 Feb 2024 14:13:44 -0500 Subject: [PATCH 24/26] Update lib/node_modules/@stdlib/assert/is-nonnegative-finite/examples/index.js Signed-off-by: Philipp Burckhardt --- .../@stdlib/assert/is-nonnegative-finite/examples/index.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/examples/index.js b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/examples/index.js index 63187c54f5e5..d54f48340f22 100644 --- a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/examples/index.js +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/examples/index.js @@ -16,8 +16,6 @@ * limitations under the License. */ -/* eslint-disable no-new-wrappers */ - 'use strict'; var Number = require( '@stdlib/number/ctor' ); From 39887e97a38979fd5d35d4ee6c1f691c59ea4dec Mon Sep 17 00:00:00 2001 From: Philipp Burckhardt Date: Fri, 23 Feb 2024 14:20:18 -0500 Subject: [PATCH 25/26] Apply suggestions from code review Signed-off-by: Philipp Burckhardt --- .../@stdlib/assert/is-nonnegative-finite/test/test.main.js | 2 +- .../@stdlib/assert/is-nonnegative-finite/test/test.object.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.main.js b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.main.js index c8f11527b9d5..414c29215300 100644 --- a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.main.js +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.main.js @@ -35,7 +35,7 @@ tape( 'main export is a function', function test( t ) { tape( 'the function returns `true` if provided a number having a nonnegative number value', function test( t ) { t.equal( isNonNegativeFinite( 5.0 ), true, 'returns true' ); - t.equal( isNonNegativeFinite( new Number( 5.0 ) ), true, 'returns true' ); // eslint-disable-line no-new-wrappers + t.equal( isNonNegativeFinite( new Number( 5.0 ) ), true, 'returns true' ); t.end(); }); diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.object.js b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.object.js index 08347651518d..a4451887abbf 100644 --- a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.object.js +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/test/test.object.js @@ -34,7 +34,7 @@ tape( 'main export is a function', function test( t ) { }); tape( 'the function returns `true` if provided a number object having a nonnegative number value', function test( t ) { - t.equal( isNonNegativeFinite( new Number( 5.0 ) ), true, 'returns true' ); // eslint-disable-line no-new-wrappers + t.equal( isNonNegativeFinite( new Number( 5.0 ) ), true, 'returns true' ); t.end(); }); @@ -54,7 +54,7 @@ tape( 'the function returns `false` if not provided a nonnegative number', funct values = [ '5', - new Number( -2.0 ), // eslint-disable-line no-new-wrappers + new Number( -2.0 ), -3.14, null, true, From c2873577b2d73fc3142b37c03a8b7ad899b0eb72 Mon Sep 17 00:00:00 2001 From: Philipp Burckhardt Date: Fri, 23 Feb 2024 14:28:17 -0500 Subject: [PATCH 26/26] Update lib/node_modules/@stdlib/assert/is-nonnegative-finite/benchmark/benchmark.js Signed-off-by: Philipp Burckhardt --- .../@stdlib/assert/is-nonnegative-finite/benchmark/benchmark.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/benchmark/benchmark.js b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/benchmark/benchmark.js index 81dfe1fe7d72..fc032d6f620c 100644 --- a/lib/node_modules/@stdlib/assert/is-nonnegative-finite/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/assert/is-nonnegative-finite/benchmark/benchmark.js @@ -16,7 +16,7 @@ * limitations under the License. */ -/* eslint-disable no-new-wrappers, no-undefined, no-empty-function */ +/* eslint-disable no-undefined, no-empty-function */ 'use strict';