@mapcss/preset-svg
Version:
SVG as CSS for MapCSS
21 lines (20 loc) • 414 B
JavaScript
/**
* 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 };