UNPKG

expo-router

Version:

Expo Router is a file-based router for React Native and web applications.

28 lines (26 loc) • 821 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "stringifySearchParams", { enumerable: true, get: function() { return stringifySearchParams; } }); function stringifySearchParams(params) { const searchParams = new URLSearchParams(); for (const [name, value] of Object.entries(params)){ if (Array.isArray(value)) { for (const item of value){ if (item !== undefined) { searchParams.append(name, item === null ? '' : String(item)); } } } else if (value !== undefined) { searchParams.append(name, value === null ? '' : String(value)); } } return searchParams.toString(); } //# sourceMappingURL=queryParams.js.map