A RouteInfo is an object that contains metadata about a specific route within a Transition. It is read-only and internally immutable. It is also not observable, because a Transition instance is never changed after creation.
find (callback, target*) Object public
Defined in packages/@ember/-internals/routing/lib/system/route-info.ts:185
- the callback to execute
- optional target to use
- Found item or undefined
Allows you to traverse through the linked list
RouteInfos from the topmost to leafmost.
Returns the first
RouteInfo in the linked list
for which the callback returns true.
This method is similar to the
defined in ECMAScript 2015.
The callback method you provide should have the following signature (all parameters are optional):
function(item, index, array);
itemis the current item in the iteration.
indexis the current index in the iteration.
arrayis the array itself.
It should return the
trueto include the item in the results,
Note that in addition to a callback, you can also pass an optional target object that will be set as
thison the context.