You can remove an element from a TypeScript dictionary (type Object) using the delete
keyword.
index.ts108 chars4 lines
Alternatively, you can use the Object
class's delete
method.
index.ts116 chars4 lines
Note that the delete
keyword returns true
if the specified property was successfully deleted, or false
otherwise.
gistlibby LogSnag