util.isNumber(object)
Stability: 0 - Deprecated
Returns true
if the given "object" is a Number
. Otherwise, returns false
.
const util = require('util'); util.isNumber(false) // false util.isNumber(Infinity) // true util.isNumber(0) // true util.isNumber(NaN) // true
Please login to continue.