Module

utils/inserttopriorityarray

@ckeditor/ckeditor5-utils/src/inserttopriorityarray

module

Filtering

Interfaces

Functions

  • insertToPriorityArray( objects, objectToInsert ) → void

    Inserts any object with priority at correct index by priority so registered objects are always sorted from highest to lowest priority.

    Type parameters

    T : extends ObjectWithPriority

    Parameters

    objects : Array<T>

    Array of objects with priority to insert object to.

    objectToInsert : T

    Object with priority property.

    Returns

    void