@appzung/react-native-code-push
Version:
React Native plugin for the CodePush service
21 lines (20 loc) • 558 B
JavaScript
export function queryStringify(object) {
let queryString = '';
let isFirst = true;
for (const property in object) {
if (object.hasOwnProperty(property)) {
const value = object[property];
if (value !== null && typeof value !== 'undefined') {
if (!isFirst) {
queryString += '&';
}
queryString += encodeURIComponent(property) + '=';
queryString += encodeURIComponent(value);
}
isFirst = false;
}
}
return queryString;
}
//# sourceMappingURL=queryStringify.js.map
;