Last active
February 10, 2020 12:52
-
-
Save luislobo14rap/105bc4dcbeb0b1386b55f9c24830d47a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// json-clone.js v1.0.1 | |
function jsonClone(json) { | |
return JSON.parse(JSON.stringify(json)); | |
}; | |
if (typeof JSON.clone == 'undefined') { | |
JSON.clone = function(json) { | |
return jsonClone(json); | |
}; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// json-clone.min.js v1.0.1 | |
function jsonClone(a){return JSON.parse(JSON.stringify(a))}'undefined'==typeof JSON.clone&&(JSON.clone=function(a){return jsonClone(a)}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
performance tests
raml-org/raml-js-parser-2#814