Currently, there's no easy way to find a Component (or sub-type) from an Artboard that matches a predicate (e.g. component whose name starts with "shoulder:"). We may be able to use the existing forEachComponent function and find a component that matches a predicate externally, but that has no way to return early once it finds a matching component.
This addition exposes a new API that allows users to find components that match a predicate more efficiently.
Currently, there's no easy way to find a Component (or sub-type) from an Artboard that matches a predicate (e.g. component whose name starts with "shoulder:"). We may be able to use the existing
forEachComponent
function and find a component that matches a predicate externally, but that has no way to return early once it finds a matching component.This addition exposes a new API that allows users to find components that match a predicate more efficiently.
Thank you.