Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ryuhojin/clonedeep-simple

[js library] super fast and easy deep clone
https://github.com/ryuhojin/clonedeep-simple

clone clonedeep deepclone javascript library npmjs

Last synced: about 1 month ago
JSON representation

[js library] super fast and easy deep clone

Awesome Lists containing this project

README

        

# clonedeep-simple

> HELLO , THIS IS SIMPLE DEEP CLONE LIBRARY

> IF YOU WANT DEEP COPY FOR SOMETHING,

> JUST, USE THIS LIBRARY!

> ### HOW TO USE

#### IMPORT
```javascript
import clone from 'clonedeep-simple'
```
#### EXAMPLE USE

```javascript
const origin1 = [1,2,3,4,5];
const origin2 = {a:1,b:2};

const copy1 = clone(origin1);
const copy2 = clone(origin2);

origin1 == copy1 //false
origin2 == copy2 //false
```

EASY TO USE, HIGH PERFORMANCE TO USE

JUST USE! DEEPCLONE!

IF YOU WANT CONTRIBUTE THIS LIBRARY

- [deepclone](https://github.com/ryuhojin/clonedeep-simple) JOIN JS.

---

> 안녕하세요, 간단한 깊은복사 라이브러리 입니다.

> JS 이용시 깊은복사가 필요할때 이용하세요

> ### 사용방법

#### 임포트
```javascript
import clone from 'clonedeep-simple'
```
#### 사용 예시

```javascript
const origin1 = [1,2,3,4,5];
const origin2 = {a:1,b:2};

const copy1 = clone(origin1);
const copy2 = clone(origin2);

origin1 == copy1 //false
origin2 == copy2 //false
```

라이브러리를 개선하실 분은 컨트리뷰트 해주세요
- [deepclone] (https://github.com/ryuhojin/clonedeep-simple) 함께해주세요.