-
Notifications
You must be signed in to change notification settings - Fork 2
IReadOnlyObservableCollection.map
API / IReadOnlyObservableCollection<TItem> / map method
Creates a new JavaScript Array constructed by mapping each item in the collection.
map<TResult, TContext>(
callback: (this: TContext, item: TItem, index: number, collection: this) => TResult,
thisArg?: TContext
): TResult[]
Source reference: src/collections/observableCollections/IReadOnlyObservableCollection.ts:184
.
-
TResult - The type to map each item to.
-
TContext - The context type in which the callback is executed.
-
callback: (this:TContext, item:TItem, index:
number
, collection:this
) => TResult
The callback mapping each item. -
thisArg: TContext
A value to use as the callback context when mapping items.
A new Array containing the mapped items.
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