function isNumberObject
Jump to headingisNumberObject(object: unknown): object is Number
Returns true
if the value is a number object, e.g. created
by new Number()
.
util.types.isNumberObject(0); // Returns false
util.types.isNumberObject(new Number(0)); // Returns true
Parameters Jump to heading
Jump to headingobject: unknown
Return Type Jump to heading
object is Number