Created
January 20, 2016 21:39
-
-
Save Fedia/a245b74eda6f4036a013 to your computer and use it in GitHub Desktop.
This file contains 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
/** | |
* Batshit crazy DOM serializer in 140byt.es fashion (138) | |
* Ships with a predefined limit of 99 childNodes | |
* | |
*/ | |
function (a,b,c){for(b=Array(99),c=0;c<99;b[c]=c++);return JSON.stringify(a,['nodeName','nodeValue','attributes','childNodes'].concat(b))} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment