lib/api/PluginHelper/PluginHelper.js
function PluginHelper (plugins, schema) {
  validatePlugins(plugins);
  plugins = plugins || [];

  // Clone the array of plugins, and sort by priority
  var pluginHelper = plugins.slice().sort(sortByPriority);

  /**
   * Internal stuff. Use at your own risk!
   *
   * @private
   */
  pluginHelper[__internal] = {
    /**
     * A reference to the {@link Schema} object
     */
    schema: schema,
  };

  // Return an array that "inherits" from PluginHelper
  return assign(pluginHelper, PluginHelper.prototype);
}
function PluginHelper (plugins, schema) {
  validatePlugins(plugins);
  plugins = plugins || [];

  // Clone the array of plugins, and sort by priority
  var pluginHelper = plugins.slice().sort(sortByPriority);

  /**
   * Internal stuff. Use at your own risk!
   *
   * @private
   */
  pluginHelper[__internal] = {
    /**
     * A reference to the {@link Schema} object
     */
    schema: schema,
  };

  // Return an array that "inherits" from PluginHelper
  return assign(pluginHelper, PluginHelper.prototype);
}
function PluginHelper ( plugins , schema ) { validatePlugins ( plugins ) ; plugins = plugins || [ ] ; // Clone the array of plugins, and sort by priority var pluginHelper = plugins . slice ( ) . sort ( sortByPriority ) ; /**
   * Internal stuff. Use at your own risk!
   *
   * @private
   */ pluginHelper [ __internal ] = { /**
     * A reference to the {@link Schema} object
     */ schema : schema , } ; // Return an array that "inherits" from PluginHelper return assign ( pluginHelper , PluginHelper . prototype ) ; }
Helper methods for working with plugins.

@param {object[]|null} plugins - The plugins to use
@param {Schema} schema - The {@link Schema} to apply the plugins to

@class
@extends Array
Helper methods for working with plugins .