UNPKG

@terminus/ngx-tools

Version:

[![CircleCI][circle-badge]][circle-link] [![codecov][codecov-badge]][codecov-project] [![semantic-release][semantic-release-badge]][semantic-release] [![MIT License][license-image]][license-url] <br> [![NPM version][npm-version-image]][npm-url] [![Github

14 lines (13 loc) 404 B
/** * Determine if an item is a function * * NOTE: While this isn't the fastest performing test in every browser, it is the faster when averaged across the browsers we care about. * * @param x - The item to test * @returns The result * * @example * isFunction(() => {}); // Returns: true * isFunction('foo'); // Returns: false */ export declare const isFunction: (x: any) => x is Function;