UNPKG

@kickscondor/umbrellajs

Version:

Lightweight and intuitive javascript library

9 lines (7 loc) 248 B
// [INTERNAL USE ONLY] // Parametize an object: { a: 'b', c: 'd' } => 'a=b&c=d' u.prototype.param = function (obj) { return Object.keys(obj).map(function (key) { return this.uri(key) + '=' + this.uri(obj[key]); }.bind(this)).join('&'); };