We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 719b942 commit 997d7e1Copy full SHA for 997d7e1
src/BaseComponent.ts
@@ -57,15 +57,15 @@ export abstract class BaseComponent<T extends Element> {
57
* Insert component after the last child
58
*/
59
public append(...components: BaseComponent<any>[]) {
60
- components.map((component) => this.element.appendChild(component.element))
+ components.forEach((component) => this.element.appendChild(component.element))
61
return this;
62
}
63
64
/**
65
* Insert component before the first child
66
67
public prepend(...components: BaseComponent<any>[]) {
68
69
70
71
0 commit comments