mirror of
https://github.com/nasa/openmct.git
synced 2025-05-15 06:53:23 +00:00
Made comment a little more accurate
This commit is contained in:
parent
0c6b4a5a23
commit
2fb9b65652
@ -296,11 +296,12 @@ define(
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Given a value, if it can be coerced to a number, then return a
|
* Given a value, if it is a number, or a string representation of a
|
||||||
* number representation. It's a little more robust than using just
|
* number, then return a number representation. Otherwise, return
|
||||||
|
* the original value. It's a little more robust than using just
|
||||||
* Number() or parseFloat, or isNaN in isolation, all of which are
|
* Number() or parseFloat, or isNaN in isolation, all of which are
|
||||||
* fairly inconsistent in their results.
|
* fairly inconsistent in their results.
|
||||||
* @param value The value to cast (if possible)
|
* @param value The value to return as a number.
|
||||||
* @returns {*} The value cast to a Number, or the original value if
|
* @returns {*} The value cast to a Number, or the original value if
|
||||||
* a Number representation is not possible.
|
* a Number representation is not possible.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user