From a5c9898360f8a3d796f7c04bbd7a54340d26d4c9 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Sun, 22 Jan 2023 12:14:11 -0800 Subject: [PATCH] url: implement URLSearchParams size getter Refs: https://github.com/whatwg/url/pull/734 --- doc/api/url.md | 8 ++++++++ lib/internal/url.js | 6 ++++++ test/parallel/test-whatwg-url-properties.js | 8 ++++++++ 3 files changed, 22 insertions(+) diff --git a/doc/api/url.md b/doc/api/url.md index be2a7541b96e25..186220d0dbb825 100644 --- a/doc/api/url.md +++ b/doc/api/url.md @@ -940,6 +940,14 @@ console.log(params.toString()); // Prints foo=def&abc=def&xyz=opq ``` +#### `urlSearchParams.size` + + + +The total number of parameter entries. + #### `urlSearchParams.sort()`