Contents

Roo

object.number?

If this object is a Number objects then returns True, otherwise it returns False.

object.number? as Boolean

Example

var t = "10"
var i = 10
t.number? # => False
i.number? # => True