-
Notifications
You must be signed in to change notification settings - Fork 2
ReadOnlyObservableCollection.some
API / ReadOnlyObservableCollection<TItem> / some method
Checks whether some elements in the collection fulfil a given condition.
This is a public method.
public some(predicate: (item: TItem, index: number, collection: IReadOnlyObservableCollection<TItem>) => boolean): boolean;
-
predicate: Function, the callback performing the check for each item.
- item: TItem, the item being evaluated.
- index: Number, the index of the item being evaluated.
- collection: IReadOnlyObservableCollection<TItem>, the collection being iterated.
ReturnsReturns: Boolean
true
if the provided item satisfies the condition;false
otherwise.
Returns: Boolean
Returns true
if the provided predicate
is true
for at least one item; otherwise false
.
Checks whether some elements in the collection fulfil a given condition.
some<TContext>(predicate: (this: TContext, item: TItem, index: number, collection: IReadOnlyObservableCollection<TItem>) => boolean, thisArg: TContext): boolean;
- TContext: the context type in which the callback is executed.
-
predicate: Function, the callback performing the check for each item.
- item: TItem, the item being evaluated.
- index: Number, the index of the item being evaluated.
- collection: IReadOnlyObservableCollection<TItem>, the collection being iterated.
ReturnsReturns: Boolean
true
if the provided item satisfies the condition;false
otherwise. - thisArg: TContext, a value to use as context when checking items.
Returns: Boolean
Returns true
if the provided predicate
is true
for at least one item; otherwise false
.
Motivation
Overview
Guides and Tutorials - Getting Started
Releases
API
Events
IEvent
IEventHandler
INotifyPropertiesChanged
INotifyCollectionChanged
IItemAddedEventArgs
IItemRemovedEventArgs
ICollectionChange
ItemRemovedCallback
ICollectionChange
EventDispatcher
Observable Collections
IReadOnlyObservableCollection
IObservableCollection
ReadOnlyObservableCollection
ObservableCollection
ViewModels
ViewModel
isViewModel
Forms
IFormFieldViewModel
IFormFieldViewModelConfig
FormFieldViewModel
FormFieldCollectionViewModel
FormFieldSet
DynamicFormFieldCollectionViewModel
Validation
IReadOnlyValidatable
IValidatable
IValidationConfig
ValidatorCallback
CollectionItemValidatorCallback
ValidatableSelectorCallback
ValidationConfigSelectorCallback
UnsubscribeCallback
registerValidators
registerCollectionValidators
registerCollectionItemValidators
React Hooks
EventHandler
useEvent
ViewModelType
ViewModelFactory
useViewModel
useViewModelMemo
useObservableCollection
useValidators
useCollectionValidators
useCollectionItemValidators