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