Api / JavaScript /

TYPE.Delete()

Deletes a property when applying a patch.

Returns Object

Examples

import { applyPatch, TYPE } from 'dop'

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