Sha256: aa142c3fcb0dab692297bf7acb158e174c0667984561a02beec890f6c3c7cc2b
Contents?: true
Size: 556 Bytes
Versions: 273
Compression:
Stored size: 556 Bytes
Contents
/** Used for built-in method references. */ var funcProto = Function.prototype; /** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString; /** * Converts `func` to its source code. * * @private * @param {Function} func The function to convert. * @returns {string} Returns the source code. */ function toSource(func) { if (func != null) { try { return funcToString.call(func); } catch (e) {} try { return (func + ''); } catch (e) {} } return ''; } module.exports = toSource;
Version data entries
273 entries across 271 versions & 29 rubygems