mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-27 01:53:48 +01:00
13 lines
395 B
TypeScript
13 lines
395 B
TypeScript
import { createElement } from "./createElement";
|
|
|
|
/**
|
|
* Appends the specified number of breaks (as children) to the specified element
|
|
* @param el The element to add child break elements to.
|
|
* @param n The number of breaks to add.
|
|
*/
|
|
export function appendLineBreaks(el: HTMLElement, n: number) {
|
|
for (let i: number = 0; i < n; ++i) {
|
|
el.appendChild(createElement("br"));
|
|
}
|
|
}
|