Contents

isNumber

A Boolean value that indicates whether the instance is a JavaScript numeric value.

Declaration

var isNumber: Bool { get }

Discussion

In JavaScript, there is no differentiation between types of numbers. Semantically, all numbers behave as double-precision floating-point types, except in special cases like bit operations.

See Also

Determining the Type of a JavaScript Value