3.0.2 • Published 2 years ago
stringify-clone v3.0.2
Stringify Clone
Wrapper for fast object cloning using JSON.parse & JSON.stringify
IMPORTANT:
THIS IS A ONE LINE PACKAGE, THERE IS NO REASON FOR YOU TO USE IT!
Notes:
- cannot clone
RegExp(returns{}) NaNvalues will be converted tonullDateobjects will be converted to ISO strings (equivalent of runningDate.toISOString())- you can reconstruct the Date by calling
new Date(string)
- you can reconstruct the Date by calling
Install
npm install stringify-cloneUsage
API
clone()
const clone = require('stringify-clone')
clone({
foo: 'bar'
})Author: Ahmad Nassri • Twitter: @AhmadNassri
3.0.2
2 years ago
3.0.1
3 years ago
3.0.0
3 years ago
2.0.11
4 years ago
2.0.12
4 years ago
2.0.10
4 years ago
2.0.9
4 years ago
2.0.7
5 years ago
2.0.8
5 years ago
2.0.6
5 years ago
2.0.5
5 years ago
2.0.4
5 years ago
2.0.3
5 years ago
2.0.2
5 years ago
2.0.1
7 years ago
2.0.0
9 years ago
1.1.1
10 years ago
1.1.0
11 years ago
1.0.0
11 years ago