MCPcopy Index your code
hub / github.com/socketio/socket.io / encode$1

Function encode$1

client-dist/socket.io.js:819–828  ·  view source on GitHub ↗

* Compiles a querystring * Returns string representation of the object * * @param {Object} * @api private

(obj)

Source from the content-addressed store, hash-verified

817 * @api private
818 */
819 function encode$1(obj) {
820 var str = '';
821 for (var i in obj) {
822 if (obj.hasOwnProperty(i)) {
823 if (str.length) str += '&';
824 str += encodeURIComponent(i) + '=' + encodeURIComponent(obj[i]);
825 }
826 }
827 return str;
828 }
829 /**
830 * Parses a simple querystring into an object
831 *

Callers 1

socket.io.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected