Test if a value is a function.
import { isFunction } from '@studiometa/js-toolkit/utils';
isFunction(() => 'foo'); // true
isFunction('foo'); // false
value
(any
): the value to testReturns true
if the given value is a function, false
otherwise.