MCPcopy Index your code
hub / github.com/codex-team/editor.js / isString

Function isString

src/components/utils.ts:217–219  ·  view source on GitHub ↗
(v: any)

Source from the content-addressed store, hash-verified

215 */
216// eslint-disable-next-line @typescript-eslint/no-explicit-any
217export function isString(v: any): v is string {
218 return typeOf(v) === 'string';
219}
220
221/**
222 * Checks if passed argument is boolean

Callers 4

convertBlockDataToStringFunction · 0.90
convertStringToBlockDataFunction · 0.90
isToolConvertableFunction · 0.90
getNamespacesFunction · 0.90

Calls 1

typeOfFunction · 0.85

Tested by

no test coverage detected