https://github.com/sahneedev/clone
A dependency-free utility library for deep cloning plain objects. 🧑🔬
https://github.com/sahneedev/clone
Last synced: about 1 year ago
JSON representation
A dependency-free utility library for deep cloning plain objects. 🧑🔬
- Host: GitHub
- URL: https://github.com/sahneedev/clone
- Owner: SahneeDEV
- License: other
- Created: 2021-02-07T21:50:25.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-17T13:01:56.000Z (almost 3 years ago)
- Last Synced: 2024-04-25T14:03:08.800Z (almost 2 years ago)
- Language: TypeScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## @sahnee/clone
A dependency-free utility library for deep cloning plain objects.
## Installation
```
npm install @sahnee/clone
```
## Usage
This library is meant to clone simple JavaScript ojects. Everything more complex that a potato is not supported:
- Primitive types (Strings, Numbers, ...)
- Dates
- Objects
- Arrays
Whereas the object and arrays may only contain other supported values. When passed non supported data types this library
makes no guarantee about its behavior.