Last active
July 15, 2016 12:54
-
-
Save renorram/facd2699d4a3ed5cb07445fa9132bea0 to your computer and use it in GitHub Desktop.
This file contains 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
function implode(separator, data) { | |
var str = []; | |
for (var key in data) { | |
if (typeof data[key] !== 'function' && data.hasOwnProperty(key)) { | |
var _str = key + '=' + data[key]; | |
str.push(_str); | |
} | |
} | |
return str.join(separator); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment