@stdlib/math-base-special-nanmax 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/index.js.map +2 -2
- package/lib/main.js +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -149,8 +149,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
149
149
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/math-base-special-nanmax.svg
|
|
150
150
|
[npm-url]: https://npmjs.org/package/@stdlib/math-base-special-nanmax
|
|
151
151
|
|
|
152
|
-
[test-image]: https://github.com/stdlib-js/math-base-special-nanmax/actions/workflows/test.yml/badge.svg?branch=v0.0.
|
|
153
|
-
[test-url]: https://github.com/stdlib-js/math-base-special-nanmax/actions/workflows/test.yml?query=branch:v0.0.
|
|
152
|
+
[test-image]: https://github.com/stdlib-js/math-base-special-nanmax/actions/workflows/test.yml/badge.svg?branch=v0.0.2
|
|
153
|
+
[test-url]: https://github.com/stdlib-js/math-base-special-nanmax/actions/workflows/test.yml?query=branch:v0.0.2
|
|
154
154
|
|
|
155
155
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/math-base-special-nanmax/main.svg
|
|
156
156
|
[coverage-url]: https://codecov.io/github/stdlib-js/math-base-special-nanmax?branch=main
|
package/dist/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../lib/main.js", "../lib/index.js"],
|
|
4
|
-
"sourcesContent": ["/**\n* @license Apache-2.0\n*\n* Copyright (c) 2024 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n// MODULES //\n\nvar max = require( '@stdlib/math-base-special-max');\nvar isnan = require( '@stdlib/math-base-assert-is-nan');\n\n\n// MAIN //\n\n/**\n* Returns the maximum value, ignoring NaN.\n*\n* @param {number} x - first number\n* @param {number} y - second number\n* @returns {number} maximum value\n*\n* @example\n* var v = nanmax( 3.14, 4.2 );\n* // returns 4.2\n*\n* @example\n* var v = nanmax( 4.14, NaN );\n* // returns 4.14\n*\n* @example\n* var v = nanmax( NaN, NaN);\n* // returns NaN\n*/\nfunction nanmax( x, y ) {\n\tif ( isnan( x ) ) {\n\t\treturn ( isnan( y ) ) ? NaN : y;\n\t}\n\treturn ( isnan( y ) ) ? x : max( x, y );\n}\n\n\n// EXPORTS //\n\nmodule.exports = nanmax;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2024 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n/**\n* Return the maximum value, ignoring NaN.\n*\n* @module @stdlib/math-base-special-nanmax\n*\n* @example\n* var nanmax = require( '@stdlib/math-base-special-nanmax' );\n*\n* var v = nanmax( 3.14, 4.2 );\n* // returns 4.2\n*\n* v = nanmax( 4.14, NaN );\n* // returns 4.14\n*\n* v = nanmax( NaN, NaN );\n* // returns NaN\n*/\n\n// MODULES //\n\nvar nanmax = require( './main.js' );\n\n\n// EXPORTS //\n\nmodule.exports = nanmax;\n"],
|
|
5
|
-
"mappings": "uGAAA,IAAAA,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsBA,IAAIC,EAAM,QAAS,+
|
|
4
|
+
"sourcesContent": ["/**\n* @license Apache-2.0\n*\n* Copyright (c) 2024 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n// MODULES //\n\nvar max = require( '@stdlib/math-base-special-max' );\nvar isnan = require( '@stdlib/math-base-assert-is-nan' );\n\n\n// MAIN //\n\n/**\n* Returns the maximum value, ignoring NaN.\n*\n* @param {number} x - first number\n* @param {number} y - second number\n* @returns {number} maximum value\n*\n* @example\n* var v = nanmax( 3.14, 4.2 );\n* // returns 4.2\n*\n* @example\n* var v = nanmax( 4.14, NaN );\n* // returns 4.14\n*\n* @example\n* var v = nanmax( NaN, NaN );\n* // returns NaN\n*/\nfunction nanmax( x, y ) {\n\tif ( isnan( x ) ) {\n\t\treturn ( isnan( y ) ) ? NaN : y;\n\t}\n\treturn ( isnan( y ) ) ? x : max( x, y );\n}\n\n\n// EXPORTS //\n\nmodule.exports = nanmax;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2024 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n/**\n* Return the maximum value, ignoring NaN.\n*\n* @module @stdlib/math-base-special-nanmax\n*\n* @example\n* var nanmax = require( '@stdlib/math-base-special-nanmax' );\n*\n* var v = nanmax( 3.14, 4.2 );\n* // returns 4.2\n*\n* v = nanmax( 4.14, NaN );\n* // returns 4.14\n*\n* v = nanmax( NaN, NaN );\n* // returns NaN\n*/\n\n// MODULES //\n\nvar nanmax = require( './main.js' );\n\n\n// EXPORTS //\n\nmodule.exports = nanmax;\n"],
|
|
5
|
+
"mappings": "uGAAA,IAAAA,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsBA,IAAIC,EAAM,QAAS,+BAAgC,EAC/CC,EAAQ,QAAS,iCAAkC,EAwBvD,SAASC,EAAQC,EAAGC,EAAI,CACvB,OAAKH,EAAOE,CAAE,EACJF,EAAOG,CAAE,EAAM,IAAMA,EAEtBH,EAAOG,CAAE,EAAMD,EAAIH,EAAKG,EAAGC,CAAE,CACvC,CAKAL,EAAO,QAAUG,ICjBjB,IAAIG,EAAS,IAKb,OAAO,QAAUA",
|
|
6
6
|
"names": ["require_main", "__commonJSMin", "exports", "module", "max", "isnan", "nanmax", "x", "y", "nanmax"]
|
|
7
7
|
}
|
package/lib/main.js
CHANGED
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
|
|
21
21
|
// MODULES //
|
|
22
22
|
|
|
23
|
-
var max = require( '@stdlib/math-base-special-max');
|
|
24
|
-
var isnan = require( '@stdlib/math-base-assert-is-nan');
|
|
23
|
+
var max = require( '@stdlib/math-base-special-max' );
|
|
24
|
+
var isnan = require( '@stdlib/math-base-assert-is-nan' );
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
// MAIN //
|
|
@@ -42,7 +42,7 @@ var isnan = require( '@stdlib/math-base-assert-is-nan');
|
|
|
42
42
|
* // returns 4.14
|
|
43
43
|
*
|
|
44
44
|
* @example
|
|
45
|
-
* var v = nanmax( NaN, NaN);
|
|
45
|
+
* var v = nanmax( NaN, NaN );
|
|
46
46
|
* // returns NaN
|
|
47
47
|
*/
|
|
48
48
|
function nanmax( x, y ) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/math-base-special-nanmax",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "Return the maximum value, ignoring NaN.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"url": "https://github.com/stdlib-js/stdlib/issues"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@stdlib/math-base-assert-is-nan": "^0.2.
|
|
33
|
+
"@stdlib/math-base-assert-is-nan": "^0.2.2",
|
|
34
34
|
"@stdlib/math-base-special-max": "^0.2.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {},
|