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
let uneval = (o, noNativeFns = true) => { | |
var retVal = ''; | |
if (typeof o === 'object') { | |
if (Array.isArray(o)) { | |
retVal = '[' + o.map((el) => uneval(el)).join(',') + ']'; | |
} else if (o instanceof RegExp) { | |
retVal = o.toString(); | |
} else if (o instanceof Date) { | |
retVal = `new Date(${o})`; | |
} else if (o === null) { |