- every<K, V, NewK, NewV>(map: Map<K, V>, predicate: ((entry: [K, V]) => entry is [NewK, NewV])): map is Map<NewK, NewV>
-
Parameters
-
map: Map<K, V>
-
predicate: ((entry: [K, V]) => entry is [NewK, NewV])
-
- (entry: [K, V]): entry is [NewK, NewV]
-
Returns entry is [NewK, NewV]
Returns map is Map<NewK, NewV>
- every<K, V, NewK, NewV>(map: ReadonlyMap<K, V>, predicate: ((entry: [K, V]) => entry is [NewK, NewV])): map is ReadonlyMap<NewK, NewV>
-
Parameters
-
map: ReadonlyMap<K, V>
-
predicate: ((entry: [K, V]) => entry is [NewK, NewV])
-
- (entry: [K, V]): entry is [NewK, NewV]
-
Returns entry is [NewK, NewV]
Returns map is ReadonlyMap<NewK, NewV>
- every<T, U>(set: Set<T>, predicate: ((value: T) => value is U)): set is Set<U>
-
Parameters
-
set: Set<T>
-
predicate: ((value: T) => value is U)
-
- (value: T): value is U
-
Returns value is U
Returns set is Set<U>
- every<T, U>(set: ReadonlySet<T>, predicate: ((value: T) => value is U)): set is ReadonlySet<U>
-
Parameters
-
set: ReadonlySet<T>
-
predicate: ((value: T) => value is U)
-
- (value: T): value is U
-
Returns value is U
Returns set is ReadonlySet<U>
- every<T, U>(iterable: Iterable<T>, predicate: ((item: T) => item is U)): iterable is Iterable<U>
-
Parameters
-
iterable: Iterable<T>
-
predicate: ((item: T) => item is U)
-
- (item: T): item is U
-
Returns item is U
Returns iterable is Iterable<U>
- every<T>(iterable: Iterable<T>, predicate: ((item: T) => boolean)): boolean
-
Parameters
-
iterable: Iterable<T>
-
predicate: ((item: T) => boolean)
-
- (item: T): boolean
-
Returns boolean
Returns boolean