Options
All
  • Public
  • Public/Protected
  • All
Menu

@tspower/check

Index

Functions

isEmail

  • isEmail(value: any): boolean
  • return if value is an Email

    Parameters

    • value: any

      value to test

    Returns boolean

    true or false matching a regular expression in _regExpr module

isEmpty

  • isEmpty(value: any): boolean
  • Return if value is undefined, null or empty

    Parameters

    • value: any

      value to test

    Returns boolean

    true or false matching a regular expression in _regExpr module

isFloat

  • isFloat(value: any): boolean
  • return if value is a float

    Parameters

    • value: any

      value to test

    Returns boolean

    true or false matching a regular expression in _regExpr module

isGenericPhoneNumber

  • isGenericPhoneNumber(value: any): boolean
  • return if value is a Generic Phone Number

    Parameters

    • value: any

      value to test

    Returns boolean

    true or false matching a regular expression in _regExpr module

isInteger

  • isInteger(value: any): boolean
  • Return if value is an integer

    Parameters

    • value: any

      value to test

    Returns boolean

    true or false matching a regular expression in _regExpr module

isItalianMobilePhoneNumber

  • isItalianMobilePhoneNumber(value: any): boolean
  • return if value is an Italian Mobile Phone Number

    Parameters

    • value: any

      value to test

    Returns boolean

    true or false matching a regular expression in _regExpr module

isItalianZipCode

  • isItalianZipCode(value: any): boolean
  • Return if value is an Italian Zip Code

    Parameters

    • value: any

      value to test

    Returns boolean

    true or false matching a regular expression in _regExpr module

isNegative

  • isNegative(value: any): boolean
  • Return if value is negative

    Parameters

    • value: any

      value to test

    Returns boolean

    true or false matching a regular expression in _regExpr module

notEmpty

  • notEmpty(value: any): boolean
  • invert Empty function

    Parameters

    • value: any

      value to test

    Returns boolean

    true or false matching a regular expression in _regExpr module

Generated using TypeDoc