Api / JavaScript /

del( object, property )

Delete a specific property. Equivalent to delete object.property

This function is necessary for those environments that do not have ES6 proxies available.

Arguments

object Object

A registered object.

property String

Property of the object you want to delete.

Returns

false

Examples

let user = dop.register({name: 'John'})
dop.del(user, 'name') // false
user.name // undefined

See also