From 5101af7dc564d63d34bc8e88fed95d27db0ea820 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()`