Function isInstanceOf

  • Returns a type guard function that checks if the given value is an instance of clazz

    Type Parameters

    • A

    Parameters

    • clazz: Newable<A>

      the class to check

    Returns (<B>(val) => val is A)

      • <B>(val): val is A
      • Type Parameters

        • B

        Parameters

        • val: A | B

        Returns val is A

Generated using TypeDoc