import { Editor , Node } from 'slate' ; import { findNode , FindNodeOptions } from './find-node' ; /**
 * Iterate through all of the nodes in the editor and break early for the first truthy match. Otherwise
 * returns false.
 */ export const someNode = < T extends Node = Node > ( editor , options ) => { return ! ! findNode < T > ( editor , options ) ; } ;