shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
remove
Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.object
Delete an object/array property by passing a dotpath to the element you want to remove.
Params
- obj*-Object
The object in which to set the value
- dotpath*-String|String[]
The dotted object/array path to delete
Example
import { remove } from '@blackbyte/sugar/object';
remove(myObject, 'my.cool.value');
remove(myObject, 'my.cool.value.0');Todo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space