ironchefpython/cheerio — comment on commit b2903d8e987480489c38bc146849337e302ce5c8
File:  line 0
By ironchefpython:

`var elems = (content.cheerio) ? content : parse.eval(content);` is a better way to write it.

And I couldn't use an object deep clone, as I didn't want to follow and all the parent links, etc. Converting to html and then back to a cheerio is a non-optimal way to do it, the right way is to write a recursive cheerio object clone that only goes "down" through children properties. But I wasn't familiar enough with the code base to write this function, and using cheerio --> html --> cheerio was quick and dirty.