Here you can find the source of quote(()
String.prototype.quote = (function(){ return '"' + this + '"'; })
String.prototype.dequote = function() { return this.replace(/^"|"$/g, '');
String.prototype.quote = function () { var c, i, l = this.length, o = '"'; for (i = 0; i < l; i += 1) { c = this.charAt(i); if (c >= ' ') { if (c === '\\' || c === '"') { o += '\\'; o += c; ...
String.prototype.quote = function(sym) { if (!sym) { sym = '"'; return sym + this + sym; };