decycle

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

This method simply remove the circular references in the passed object

Params

  1. obj*-Object

    The object to process

Return

  1. -Object

    The new object circular references free

Example

import { decycle } from '@blackbyte/sugar/object';
decycle({
   something: 'cool',
   with: 'circular references',
   //..
});

Todo

  • testsnormal