17 lines
394 B
JavaScript
17 lines
394 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
/**
|
|
* Return list of plugin names. This method is nly used in unit tests.
|
|
*
|
|
* @param {OrderedMap<String:Plugin} plugins
|
|
* @return {Array<String>}
|
|
*/
|
|
function toNames(plugins) {
|
|
return plugins
|
|
.map((plugin) => {
|
|
return plugin.getName();
|
|
})
|
|
.toArray();
|
|
}
|
|
exports.default = toNames;
|