Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vdegenne/make-it-square
Just a module that flatten objects with circular references.
https://github.com/vdegenne/make-it-square
Last synced: about 2 months ago
JSON representation
Just a module that flatten objects with circular references.
- Host: GitHub
- URL: https://github.com/vdegenne/make-it-square
- Owner: vdegenne
- Created: 2018-04-27T00:31:46.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-04-27T00:41:26.000Z (over 6 years ago)
- Last Synced: 2024-10-26T23:43:54.491Z (2 months ago)
- Language: TypeScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# make-it-square
Just a module that flatten objects with circular references.
## Usage
```javascript
import {makeItSquare} from 'make-it-square';const o = {};
o.o = o; // <- circularconsole.log(JSON.stringify(makeItSquare(o))); // <- no problem
```## Installation
```bash
yarn add make-it-square
```