Commit dd5a2473 authored by Denys Mishunov's avatar Denys Mishunov

Simplified covertion to array

As per review
parent 3dbbe26b
......@@ -161,7 +161,7 @@ export default class EditorLite {
}
static instanceApplyExtension(inst, exts = []) {
const extensions = Array.isArray(exts) ? exts : [exts];
const extensions = [].concat(exts);
extensions.forEach((extension) => {
EditorLite.mixIntoInstance(extension, inst);
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment