Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "isIPrimitive"

Index

Functions

Functions

isIPrimitive

  • isIPrimitive<T>(instance: any | Readonly<IPrimitive<T>>): boolean
  • isIPrimitive<T>(instance: any | IPrimitive<T>): boolean
  • Determines if an object is a primitive. Checks that the value property returns a primitive value.

    Type parameters

    • T

    Parameters

    • instance: any | Readonly<IPrimitive<T>>

      the object to perform the check on

    Returns boolean

    true if the object conforms to the {@link IPrimitive} interface

  • Determines if an object is a primitive. Checks that the value property returns a primitive value.

    Type parameters

    • T

    Parameters

    • instance: any | IPrimitive<T>

      the object to perform the check on

    Returns boolean

    true if the object conforms to the {@link IPrimitive} interface