Source
915
915
if (Array.isArray(value) || (typeof value === 'object')) {
916
916
const result_part = urlEncodeData(value, prefixed_name);
917
917
918
918
if (result_part !== '') {
919
919
result.push(result_part);
920
920
}
921
921
}
922
922
else {
923
923
result.push([encodeURIComponent(prefixed_name), encodeURIComponent(value)].join('='));
924
924
}
925
-
};
925
+
}
926
926
927
927
return result.join('&');
928
928
}
929
929
930
930
/**
931
931
* Get form field values as deep object.
932
932
*
933
933
* Example:
934
934
* <form>
935
935
* <input name="a" value="1">