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

  1. object*-Object

    The object on which you want to delete the property

  2. 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