MCPcopy Create free account
hub / github.com/GrapesJS/react / isString

Function isString

packages/grapesjs-react/src/utils/dom.ts:3–3  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

1export const isDef = (value: any) => typeof value !== 'undefined';
2
3export const isString = (value: any): value is string => typeof value === 'string';
4
5export const prevent = (ev?: Event) => ev?.preventDefault();
6

Callers 2

WrapDomFunction · 0.90
loadScriptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected