Skip to main content

xnew.find

xnew.find find units using a component function.

xnew.find(Component); // component function

example

xnew(() => {
const unit1 = xnew(Component);
const unit2 = xnew(Component);

xnew.find(Component); // [unit1, unit2]
});

function Component(self) {
}