isNumberRaw

external fun isNumberRaw(value: Any?): Boolean(source)

Returns true if the given object is a Number. Otherwise, returns false.

const util = require('node:util');

util.isNumber(false);
// Returns: false
util.isNumber(Infinity);
// Returns: true
util.isNumber(0);
// Returns: true
util.isNumber(NaN);
// Returns: true

Since

v0.11.5