Export function
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
35f6043d06
commit
1d5b16395f
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ limitations under the License.
|
|||
import {el} from "./html.js";
|
||||
import {mountView} from "./utils.js";
|
||||
|
||||
function insertAt(parentNode, idx, childNode) {
|
||||
export function insertAt(parentNode, idx, childNode) {
|
||||
const isLast = idx === parentNode.childElementCount;
|
||||
if (isLast) {
|
||||
parentNode.appendChild(childNode);
|
||||
|
|
Reference in a new issue