Skip to Content

remove Method

Removes the value associated with the specified key

@param key: string
The key for which to remove the value

API

remove(key: string): void;

Example

class ExampleSource<T = any> implements KeyValueSource<T> { private data: Index<T> = {}; private readonly subject = new Subject<string>(); remove(key: string): void { delete this.data[key]; this.subject.next(key); } // ... }
Last updated on