UNPKG

@phaserjs/phaser

Version:
8 lines (7 loc) 210 B
import { AddChildAt } from "./AddChildAt"; export function AddChildrenAt(parent, index, ...children) { children.reverse().forEach((child) => { AddChildAt(parent, child, index); }); return children; }