shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
deleteProperty
Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.object
Delete an object property using a dotPath like “something.else”
Params
- object*-Object
The object on which you want to delete the property
- dotPath*-String
The dotpath to the property you want to delete
Example
import { deleteProperty } from '@blackbyte/sugar/object';
const myObject = {
hello: 'world',
plop: 'yop'
};
deleteProperty(myObject, 'plop');Todo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space