Export function

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-07-03 21:18:55 +05:30
parent 35f6043d06
commit 1d5b16395f

View File

@ -17,7 +17,7 @@ limitations under the License.
import {el} from "./html.js"; import {el} from "./html.js";
import {mountView} from "./utils.js"; import {mountView} from "./utils.js";
function insertAt(parentNode, idx, childNode) { export function insertAt(parentNode, idx, childNode) {
const isLast = idx === parentNode.childElementCount; const isLast = idx === parentNode.childElementCount;
if (isLast) { if (isLast) {
parentNode.appendChild(childNode); parentNode.appendChild(childNode);