Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

Export assignment isArrowFunction

  • isArrowFunction(value: any): boolean
  • Tests if a value is an arrow function.

    Parameters

    • value: any

      value to test

    Returns boolean

    boolean indicating whether value is an arrow function

    Example

    var arrow = () => {};
    var bool = isArrowFunction( arrow );
    // returns true

    Example

    function beep() {
        return 'beep';
    }
    
    var bool = isArrowFunction( beep );
    // returns false