Module

utils/inserttopriorityarray

@ckeditor/ckeditor5-utils/src/inserttopriorityarray

module

Filtering

Type Definitions

Functions

  • insertToPriorityArray( objects, objectToInsert )

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

    Parameters

    objects : Array.<ObjectWithPriority>

    Array of objects with priority to insert object to.

    objectToInsert : ObjectWithPriority

    Object with priority property.