Open this example in the interactive library
Source code
import { URLSearchParams } from "node:url";
console.log(new URLSearchParams("a=1").get("page"));
Sample output
null

Open this example in the interactive library
import { URLSearchParams } from "node:url";
console.log(new URLSearchParams("a=1").get("page"));
null