Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 304 Bytes

File metadata and controls

16 lines (11 loc) · 304 Bytes

TYPE.Delete()

Deletes a property when applying a patch.

Returns Object

Examples

import { applyPatch, TYPE } from 'dop'

const target = { hello: 'hola', world: 'mundo' }
const patch = { world: TYPE.Delete() }
applyPatch(target, patch)
target // { hello: 'hola' }