Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

Const isFunction

  • isFunction(val: unknown): boolean
  • Checks if the given value is a function with a fallback check for IE.

    example

    isFunction(async function () {}); // true isFunction(function () {}); // true isFunction('not function'); // false

    Parameters

    • val: unknown

      The value to check.

    Returns boolean

    Whether the value is a function.

Legend

  • Function

Generated using TypeDoc