UNPKG

restringer

Version:

Deobfuscate Javascript with emphasis on reconstructing strings

9 lines (8 loc) 249 B
/** * @param {*} unknownObject * @return {string} The type of whatever object is provided if possible; empty string otherwise. */ function getObjType(unknownObject) { return ({}).toString.call(unknownObject).slice(8, -1); } export {getObjType};