Builds a URL query string from a flat record of primitive values.
The function skips undefined and null values, repeats keys for array
values (the convention MyAnimeList uses for list parameters), and
percent-encodes each value. An empty record produces an empty string. A plain
object value throws a TypeError instead of serializing as
[object Object]. Flatten nested parameters into primitive keys before
calling this function.
Builds a URL query string from a flat record of primitive values.
The function skips
undefinedandnullvalues, repeats keys for array values (the convention MyAnimeList uses for list parameters), and percent-encodes each value. An empty record produces an empty string. A plain object value throws aTypeErrorinstead of serializing as[object Object]. Flatten nested parameters into primitive keys before calling this function.