Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 570 Bytes

File metadata and controls

18 lines (13 loc) · 570 Bytes
title createSearchParams

createSearchParams

Type declaration
declare function createSearchParams(
  init?: URLSearchParamsInit
): URLSearchParams;

createSearchParams is a thin wrapper around new URLSearchParams(init) that adds support for using objects with array values. This is the same function that useSearchParams uses internally for creating URLSearchParams objects from URLSearchParamsInit values.