-
Notifications
You must be signed in to change notification settings - Fork 2
IReadOnlyObservableCollection.findLast
API / IReadOnlyObservableCollection<TItem> / findLast method
This method has multiple overloads.
Returns the last item that satisfies the given condition.
findLast<TContext>(
predicate: (this: TContext, item: TItem, index: number, collection: this) => boolean,
thisArg?: TContext
): undefined | TItem
Source reference: src/collections/observableCollections/IReadOnlyObservableCollection.ts:155
.
- TContext - The context type in which the callback is executed.
-
predicate: (this:TContext, item:TItem, index:
number
, collection:this
) =>boolean
The callback performing the check. -
thisArg: TContext
A value to use as context when evaluating items.
Returns: undefined
| TItem
Returns the last item for which the provided predicate
evaluates to true
; otherwise undefined
.
Returns the last item that satisfies the given condition.
findLast<TResult, TContext>(
predicate: (this: TContext, item: TItem, index: number, collection: this) => item is TResult,
thisArg?: TContext
): undefined | TResult
Source reference: src/collections/observableCollections/IReadOnlyObservableCollection.ts:165
.
-
TResult - The type of item to return.
-
TContext - The context type in which the callback is executed.
-
predicate: (this:TContext, item:TItem, index:
number
, collection:this
) =>item
is TResult
The callback performing the check. -
thisArg: TContext
A value to use as context when evaluating items.
Returns: undefined
| TResult
Returns the last item for which the provided predicate
evaluates to true
; otherwise undefined
.
Overview
Motivation
Guides and Tutorials - Getting Started
Releases
CodeSandbox
API
Events
IEvent
IEventHandler
EventDispatcher
ViewModels
INotifyPropertiesChanged
ViewModel
Forms
Form
IFormFieldConfig
FormField
ReadOnlyFormCollection
FormCollection
IConfigurableFormCollection
FormSetupCallback
Validation
IValidator
ValidatorCallback
IObjectValidator
IValidatable
Validation / Triggers
WellKnownValidationTrigger
ValidationTrigger
Observable Collection
ReadOnlyObservableCollection
ObservableCollection
INotifyCollectionChanged
CollectionChangeOperation
INotifyCollectionReordered
CollectionReorderOperation
Observable Map
ReadOnlyObservableMap
ObservableMap
INotifyMapChanged
MapChangeOperation
Observable Set
ReadOnlyObservableSet
ObservableSet
INotifySetChanged
SetChangeOperation
Dependency Handling
IDependencyResolver
IDependencyContainer
DependencyContainer
useDependency
useViewModelDependency
useDependencyResolver
React Hooks
useViewModel
useViewModelMemo
useObservableCollection
useObservableMap
useObservableSet