Init from given files
This commit is contained in:
8
examples/js/distances/numeric.js
Normal file
8
examples/js/distances/numeric.js
Normal file
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Check if the object (string, number, etc.) contains a number.
|
||||
* @param {object} n - object to check.
|
||||
* @return {Boolean} true, if it is a number, false otherwise.
|
||||
*/
|
||||
function isNumeric(n) {
|
||||
return !isNaN(parseFloat(n)) && isFinite(n);
|
||||
}
|
||||
Reference in New Issue
Block a user