UNPKG

@drift-labs/common

Version:

Common functions for Drift

11 lines 433 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.encodeQueryParams = void 0; const encodeQueryParams = (params) => { return Object.entries(params) .filter(([_, value]) => value !== undefined) .map(([key, value]) => `${encodeURIComponent(key)}=${encodeURIComponent(value)}`) .join('&'); }; exports.encodeQueryParams = encodeQueryParams; //# sourceMappingURL=fetch.js.map