Skip to main content

$isChildCaret

function

Guard to check if the given argument is specifically a ChildCaret

function $isChildCaret<D extends CaretDirection>(caret: null | undefined | PointCaret<D>): caret is ChildCaret<ElementNode, D>

Import

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

Notes

returns
true if caret is a ChildCaret