StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
StackGenVis/frontend/node_modules/validate.io-number-primitive/lib/index.js

46 lines
656 B

4 years ago
/**
*
* VALIDATE: number-primitive
*
*
* DESCRIPTION:
* - Validates if a value is a number primitive.
*
*
* NOTES:
* [1]
*
*
* TODO:
* [1]
*
*
* LICENSE:
* MIT
*
* Copyright (c) 2015. Athan Reines.
*
*
* AUTHOR:
* Athan Reines. kgryte@gmail.com. 2015.
*
*/
'use strict';
/**
* FUNCTION: isNumber( value )
* Validates if a value is a number primitive, excluding `NaN`.
*
* @param {*} value - value to be validated
* @returns {Boolean} boolean indicating if a value is a number primitive
*/
function isNumber( value ) {
return (typeof value === 'number') && (value === value);
} // end FUNCTION isNumber()
// EXPORTS //
module.exports = isNumber;