Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

Export assignment isNativeFunction

  • isNativeFunction(value: any): boolean
  • Tests if a value is a native function.

    Parameters

    • value: any

      value to test

    Returns boolean

    boolean indicating whether value is a native function

    Example

    function beep() {
        console.log( 'boop' );
    }
    
    var bool = isNativeFunction( beep );
    // returns false
    
    bool = isNativeFunction( Date );
    // returns true