isPhone

Check if StringProperty is a phone based on the format.

val property = StringProperty()
val control = Control(
scope = "#/properties/key",
options = Options(format = Format.Phone)
)
val isPassword = property.isPhone(control)

Return

true if the StringProperty is a phone

Parameters