Options
All
  • Public
  • Public/Protected
  • All
Menu

Module src/utils/validators

Index

Functions

Const getType

  • getType(obj: any): string

Const hasProperty

  • hasProperty(obj: any, prop: undefined | null | PropertyKey): boolean
  • Returns a boolean indicating whether the object has the specified property.

    Parameters

    • obj: any

      An object.

    • prop: undefined | null | PropertyKey

      A property name.

    Returns boolean

Const hasProperty2

  • hasProperty2(obj: any, prop: PropertyKey): boolean
  • Returns a boolean indicating whether the object has the specified property.

    Parameters

    • obj: any

      An object.

    • prop: PropertyKey

      A property name.

    Returns boolean

Const isArray

  • isArray(value: any): boolean

Const isBlankString

  • isBlankString(value: string): boolean

Const isFunction

  • isFunction(value: any): boolean

Const isNotNull

  • isNotNull(value: any): boolean

Const isNotUndefined

  • isNotUndefined(value: any): boolean

Const isNull

  • isNull(value: any): boolean

Const isNullOrUndefined

  • isNullOrUndefined(value: any): boolean

Const isNumber

  • isNumber(value: any): boolean

Const isObject

  • isObject(value: any): boolean

Const isString

  • isString(value: any): boolean

Const isUndefined

  • isUndefined(value: any): boolean

Generated using TypeDoc