13 lines
303 B
JavaScript
13 lines
303 B
JavaScript
/**
|
|
* @returns {HTMLDivElement}
|
|
*/
|
|
export function testContainer(elements){
|
|
let container = document.createElement('div');
|
|
if(elements){
|
|
if(!(elements instanceof Array)){
|
|
elements = [elements];
|
|
}
|
|
container.append(...elements);
|
|
}
|
|
return container;
|
|
} |