toPlainObject

Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.object

This function take an object as parameter and return a new one that does not have getters, setters, etc…

Params

  1. object*-Object

  2. settings{}Object

    Some settings to configure your process

Return

  1. -Object

    The new simple object

Example

import { toPlainObject } from '@blackbyte/sugar/object';
toPlainObject({ something: 'cool' });

Todo

  • testsnormal