Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "IsEnum"

Index

Functions

Functions

isEnum

  • isEnum(value: any, target: any): boolean
  • Checks if a given value is an enum (The value is contained in a property on the target object).

    Parameters

    • value: any

      The value being checked.

    • target: any

      The enum instance

    Returns boolean

    True if the value is an instance of the enum, false otherwise.

Generated using TypeDoc