node_modules/yjs/dist/tests.js
/**
     * Deletes text starting from an index.
     *
     * @param {number} index Index at which to start deleting.
     * @param {number} length The number of characters to remove. Defaults to 1.
     *
     * @public
     */
Deletes text starting from an index.
@param {number} index Index at which to start deleting.
@param {number} length The number of characters to remove. Defaults to 1.

@public
Deletes text starting from an index . @param { number } index Index at which to start deleting . @param { number } length The number of characters to remove . Defaults to 1 . @public
delete (index, length) {
      if (length === 0) {
        return
      }
      const y = this.doc;
      if (y !== null) {
        transact(y, transaction => {
          deleteText(transaction, findPosition(transaction, this, index), length);
        });
      } else {
         (this._pending).push(() => this.delete(index, length));
      }
    }
delete ( index , length ) { if ( length === 0 ) { return } const y = this . doc ; if ( y !== null ) { transact ( y , transaction => { deleteText ( transaction , findPosition ( transaction , this , index ) , length ) ; } ) ; } else { ( this . _pending ) . push ( ( ) => this . delete ( index , length ) ) ; } }
Deletes text starting from an index.
Deletes text starting from an index .
/** @type {Array<function>} */