json-cycle-es
v1.0.0
Published
ESModule distribution of the famous cycle.js from Douglas Crockford.
Downloads
91
Readme
JSON Cycle ES
ESModule distribution of the famous cycle.js from Douglas Crockford. This module exports two functions decycle
and retrocycle
. The implementation remains the same with slight modifications that should not alter the behavior of those functions.
Usage
import { decycle, retrocycle } from 'json-cycle-es';
const decycledObj = decycle(cyclicObj);
// or
const cyclicObj = retrocycle(decycledObj);
The additional arguments in the signature can be ignored and are only used for recusrive calls.
License
Public Domain
NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.