KeyValueDiffer

A differ that tracks changes made to an object over time.

interface KeyValueDiffer<K, V> { diff(object: Map<K, V>): KeyValueChanges<K, V> | null }

方法

Compute a difference between the previous state and the new object state.

diff(object: { [key: string]: V; }): KeyValueChanges<string, V> | null

参数

object

containing the new value.

返回值

KeyValueChanges<string, V> | null: an object describing the difference. The return value is only valid until the next diff() invocation.