Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "assert/is-same-native-class/docs/types/index.d"

Index

Functions

Functions

Export assignment isSameNativeClass

  • isSameNativeClass(a: any, b: any): boolean
  • Tests if two arguments have the same native class.

    Parameters

    • a: any

      first input value

    • b: any

      second input value

    Returns boolean

    boolean indicating whether two arguments have the same native class

    Example

    var bool = isSameNativeClass( 3.14, new Number( 3.14 ) );
    // returns true

    Example

    var bool = isSameNativeClass( 'beep', 'boop' );
    // returns true

    Example

    var bool = isSameNativeClass( [], {} );
    // returns false