Module 998736

540 characters · in 3543.cf1ac0ffb3fe4f5f.js
Dependencies
Required by (1)
Lazily required by (0)none
Requires (0)none
Lazily requires (0)none
Source Raw
function(e){"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,r,n,i){return(r=r||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e)?Object.keys(e).map(function(i){var o=encodeURIComponent(t(i))+n;return Array.isArray(e[i])?e[i].map(function(e){return o+encodeURIComponent(t(e))}).join(r):o+encodeURIComponent(t(e[i]))}).filter(Boolean).join(r):i?encodeURIComponent(t(i))+n+encodeURIComponent(t(e)):""}}