• Overview
@angular/common

KeyValuePipe

pipe

Transforms Object or Map into an array of key value pairs.

  
    class KeyValuePipe implements PipeTransform {
}

transform

7 overloads
@paraminputReadonlyMap<K, V>
@paramcompareFn((a: KeyValue<K, V>, b: KeyValue<K, V>) => number) | null | undefined
@returnsKeyValue<K, V>[]
@paraminputRecord<K, V>
@paramcompareFn((a: KeyValue<string, V>, b: KeyValue<string, V>) => number) | null | undefined
@returnsKeyValue<string, V>[]
@paraminputRecord<K, V> | ReadonlyMap<K, V>
@paramcompareFn((a: KeyValue<K, V>, b: KeyValue<K, V>) => number) | null | undefined
@returnsKeyValue<K, V>[]
@paraminputnull | undefined
@paramcompareFn((a: KeyValue<unknown, unknown>, b: KeyValue<unknown, unknown>) => number) | null | undefined
@returnsnull
@paraminputReadonlyMap<K, V> | null | undefined
@paramcompareFn((a: KeyValue<K, V>, b: KeyValue<K, V>) => number) | null | undefined
@returnsKeyValue<K, V>[] | null
@paraminputRecord<K, V> | null | undefined
@paramcompareFn((a: KeyValue<string, V>, b: KeyValue<string, V>) => number) | null | undefined
@returnsKeyValue<string, V>[] | null
@paraminputRecord<K, V> | ReadonlyMap<K, V> | null | undefined
@paramcompareFn((a: KeyValue<K, V>, b: KeyValue<K, V>) => number) | null | undefined
@returnsKeyValue<K, V>[] | null
Jump to details