UNPKG

@mapcss/preset-svg

Version:
21 lines (20 loc) 414 B
/** * Whatever argument is type of `function` or not * * @param val - Input any value * @returns The result of `typeof val === 'function'` * * @example * ```ts * import { isFunction } from './mod.ts' * isFunction(() => {}) // true * isFunction({}) // false * ``` * * @beta */ // deno-lint-ignore ban-types function isFunction(value) { return typeof value === "function"; } export { isFunction };