Checks if the given value is a Function (opens in a new tab).
Syntax
import { isFn } from '@opentf/std';
isFn(val: unknown): boolean
Examples
isFn(function() {}) //=> true
isFn({}) //=> false
function* generator(i) {
yield i;
yield i + 10;
}
isFn(generator); //=> true