Skip to main content

$isNodeCaret

function

Guard to check if the given argument is any type of caret

function $isNodeCaret<D extends CaretDirection>(caret: null | undefined | PointCaret<D>): caret is PointCaret<D>

Import

import { $isNodeCaret } from '@modular/sdk/editor';

Notes

returns
true if caret is any type of caret