UNPKG

@appzung/react-native-code-push

Version:

React Native plugin for the CodePush service

25 lines (24 loc) 657 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.queryStringify = queryStringify; 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