diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index ba1ff14..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2024-09-01T02:07:20.884Z diff --git a/CHANGELOG.md b/CHANGELOG.md index afdbecb..d79817e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@
-## Unreleased (2024-09-01) +## Unreleased (2024-09-22)
@@ -12,6 +12,7 @@
+- [`b723a6e`](https://github.com/stdlib-js/stdlib/commit/b723a6eaec97adad2da4ffbecb532a3d1ae1e0ba) - **docs:** fix errors in comments and clean-up _(by Philipp Burckhardt)_ - [`2777e4b`](https://github.com/stdlib-js/stdlib/commit/2777e4be161869d09406e3b17947d24c64b47af2) - **bench:** resolve lint errors in benchmarks _(by Athan Reines)_ - [`d04dcbd`](https://github.com/stdlib-js/stdlib/commit/d04dcbd6dc3b0bf4a89bd3947d317fa5ff15bb38) - **docs:** remove private annotations in C comments _(by Philipp Burckhardt)_ diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 57d1184..147a89e 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -2,6 +2,7 @@ # # Contributors listed in alphabetical order. +Aayush Khanna <96649223+aayush0325@users.noreply.github.com> Adarsh Palaskar Aditya Sapra AgPriyanshu18 <113460573+AgPriyanshu18@users.noreply.github.com> @@ -26,17 +27,20 @@ EuniceSim142 <77243938+EuniceSim142@users.noreply.github.com> Frank Kovacs Golden Kumar <103646877+AuenKr@users.noreply.github.com> Gunj Joshi +HarshaNP <96897754+GittyHarsha@users.noreply.github.com> Harshita Kalani Hridyanshu <124202756+HRIDYANSHU054@users.noreply.github.com> Jaimin Godhani <112328542+Jai0401@users.noreply.github.com> James Gelok Jaysukh Makvana +Jenish Thapa <141203631+jenish-thapa@users.noreply.github.com> Jithin KS Joel Mathew Koshy Joey Reed Jordan Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com> Joris Labie Justin Dennison +Kaif Mohd Karthik Prakash <116057817+skoriop@users.noreply.github.com> Khaldon Krishnendu Das <86651039+itskdhere@users.noreply.github.com> @@ -86,8 +90,10 @@ Stephannie JimĂ©nez Gacha Suraj kumar <125961509+kumarsuraj212003@users.noreply.github.com> Tirtadwipa Manunggal Tudor Pagu <104032457+tudor-pagu@users.noreply.github.com> +Tufailahmed Bargir <142114244+Tufailahmed-Bargir@users.noreply.github.com> Utkarsh Utkarsh Raj +Vaibhav Patel <98279986+noobCoderVP@users.noreply.github.com> Varad Gupta Xiaochuan Ye Yernar Yergaziyev @@ -96,3 +102,4 @@ nishant-s7 <97207366+nishant-s7@users.noreply.github.com> orimiles5 <97595296+orimiles5@users.noreply.github.com> rainn <88160429+AmCodesLame@users.noreply.github.com> rei2hu +yaswanth <116426380+yaswanthkosuru@users.noreply.github.com> diff --git a/README.md b/README.md index 8d307c4..31fa3f7 100644 --- a/README.md +++ b/README.md @@ -268,6 +268,11 @@ For more information on the project, filing bug reports and feature requests, an --- +## License + +See [LICENSE][stdlib-license]. + + ## Copyright Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors]. @@ -314,6 +319,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors]. [esm-readme]: https://github.com/stdlib-js/number-float64-base-assert-is-same-value-zero/blob/esm/README.md [branches-url]: https://github.com/stdlib-js/number-float64-base-assert-is-same-value-zero/blob/main/branches.md +[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/number-float64-base-assert-is-same-value-zero/main/LICENSE + [@stdlib/number/float64/base/assert/is-same-value]: https://github.com/stdlib-js/number-float64-base-assert-is-same-value
diff --git a/dist/index.js b/dist/index.js index d48d1ca..084fed6 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,33 +1,5 @@ +"use strict";var i=function(r,e){return function(){return e||r((e={exports:{}}).exports,e),e.exports}};var s=i(function(c,t){ +function u(r,e){return r===e||r!==r&&e!==e}t.exports=u +});var n=s();module.exports=n; /** @license Apache-2.0 */ - -'use strict'; - -/** -* Test if two double-precision floating-point numbers are the same value. -* -* @module @stdlib/number-float64-base-assert-is-same-value-zero -* -* @example -* var isSameValueZero = require( '@stdlib/number-float64-base-assert-is-same-value-zero' ); -* -* var bool = isSameValueZero( 3.14, 3.14 ); -* // returns true -* -* bool = isSameValueZero( -0.0, -0.0 ); -* // returns true -* -* bool = isSameValueZero( -0.0, 0.0 ); -* // returns true -* -* bool = isSameValueZero( NaN, NaN ); -* // returns true -*/ - -// MODULES // - -var main = require( './main.js' ); - - -// EXPORTS // - -module.exports = main; +//# sourceMappingURL=index.js.map diff --git a/dist/main.js b/dist/main.js deleted file mode 100644 index 7032ac6..0000000 --- a/dist/main.js +++ /dev/null @@ -1,58 +0,0 @@ -/** -* @license Apache-2.0 -* -* 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. -* 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'; - -// MAIN // - -/** -* Tests if two double-precision floating-point numbers are the same value. -* -* ## Notes -* -* - The function implements the SameValueZero Algorithm used by `TypedArray` and `ArrayBuffer` constructors, `Map` and `Set` operations, `String.prototype.includes`, and `Array.prototype.includes` since ES2016. -* - In contrast to the strict equality operator `===`, `NaNs` are considered the same value. -* -* @param {number} a - first input value -* @param {number} b - second input value -* @returns {boolean} boolean indicating whether two double-precision floating-point numbers are the same value -* -* @example -* var bool = isSameValueZero( 3.14, 3.14 ); -* // returns true -* -* @example -* var bool = isSameValueZero( -0.0, -0.0 ); -* // returns true -* -* @example -* var bool = isSameValueZero( -0.0, 0.0 ); -* // returns true -* -* @example -* var bool = isSameValueZero( NaN, NaN ); -* // returns true -*/ -function isSameValueZero( a, b ) { - return ( a === b ) || ( a !== a && b !== b ); // handles NaNs -} - - -// EXPORTS // - -module.exports = isSameValueZero; diff --git a/dist/native.js b/dist/native.js deleted file mode 100644 index 50abe2c..0000000 --- a/dist/native.js +++ /dev/null @@ -1,60 +0,0 @@ -/** -* @license Apache-2.0 -* -* 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. -* 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 Boolean = require( '@stdlib/boolean-ctor' ); -var addon = require( './../src/addon.node' ); - - -// MAIN // - -/** -* Tests if two double-precision floating-point numbers are the same value. -* -* @private -* @param {number} a - first input value -* @param {number} b - second input value -* @returns {boolean} boolean indicating whether two double-precision floating-point numbers are the same value -* -* @example -* var bool = isSameValueZero( 3.14, 3.14 ); -* // returns true -* -* @example -* var bool = isSameValueZero( -0.0, -0.0 ); -* // returns true -* -* @example -* var bool = isSameValueZero( -0.0, 0.0 ); -* // returns true -* -* @example -* var bool = isSameValueZero( NaN, NaN ); -* // returns true -*/ -function isSameValueZero( a, b ) { - return Boolean( addon( a, b ) ); -} - - -// EXPORTS // - -module.exports = isSameValueZero; diff --git a/docs/types/index.d.ts b/docs/types/index.d.ts index bf17a6a..2f462f0 100644 --- a/docs/types/index.d.ts +++ b/docs/types/index.d.ts @@ -23,7 +23,7 @@ * * ## Notes * -* - The function differs from the `===` operator in that the function treats ``NaNs` as the same value. +* - The function differs from the `===` operator in that the function treats `NaNs` as the same value. * * @param a - first input value * @param b - second input value