KeyValuePipe
pipe
Transforms Object or Map into an array of key value pairs.
API
Description
Usage Notes
class KeyValuePipe implements PipeTransform {}
transform
7 overloads
@paraminput
ReadonlyMap<K, V>
@returns
KeyValue<K, V>[]
@paraminput
Record<K, V>
@returns
KeyValue<string, V>[]
@paraminput
Record<K, V> | ReadonlyMap<K, V>
@returns
KeyValue<K, V>[]
@paraminput
null | undefined
@paramcompareFn
((a: KeyValue<unknown, unknown>, b: KeyValue<unknown, unknown>) => number) | null | undefined
@returns
null
@paraminput
ReadonlyMap<K, V> | null | undefined
@returns
KeyValue<K, V>[] | null
@paraminput
Record<K, V> | null | undefined
@returns
KeyValue<string, V>[] | null
Jump to details