@mapcss/preset-svg
Version:
SVG as CSS for MapCSS
19 lines (18 loc) • 337 B
JavaScript
/**
* Whatever argument is type of `boolean` or not
*
* @param val - Input any value
* @returns The result of `typeof val === 'boolean'`
*
* @example
* ```ts
* isBoolean(true) // true
* isBoolean('hello') // false
* ```
*
* @beta
*/
function isBoolean(value) {
return typeof value === "boolean";
}
export { isBoolean };