package
Wrapper for fast object cloning using `JSON.parse` & `JSON.stringify`
npm install stringify-cloneGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
3.4 kB
Includes dependencies.
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:
RegExp (returns {})NaN values will be converted to nullDate objects will be converted to ISO strings (equivalent of running Date.toISOString())
new Date(string)npm install stringify-cloneconst clone = require('stringify-clone')
clone({
foo: 'bar'
})Author: Ahmad Nassri • Twitter: @AhmadNassri