Skip to content

Tag Archives: Node-URL

The url.protocol is an inbuilt application programming interface of class URL within url module which is used to get and set the protocol portion of… Read More
In URLSearchParams interface, the sort() method helps to sort all key/pairs in place.The sort criteria is unicode points of the keys.This method uses stable sorting… Read More
With the help of urlObject.pathname() method, we can find the name of the path which is used by the given hostname. This contains all the… Read More
In URLSearchParams interface, the values() method returns an iterator which allows us to iterate through all the values present in the object Syntax: searchParams.values(); Return:… Read More
In URLSearchParams interface, the set() method sets the value given as an input parameter.If there are several values matching the input parameter then it deletes… Read More
In URLSearchParams interface, the toString() method returns a query string which is suitable for use in a URL. Syntax: URLSearchParams.toString() Return:Returns the search parameters serialized… Read More
In URLSearchParams interface, the keys() method returns an Iterator which allows us to iterate through all the keys present in the object. Syntax: searchParams.keys(); Return:Returns… Read More
In URLSearchParams interface, the getAll() method returns all the values of the input search parameter in the form of an array. Syntax: URLSearchParams.getAll(name) Returns: An… Read More
In URLSearchParams interface, the foreach() method returns an iterator which allows to iterate through all values contained in this object with the help of a… Read More
In URLSearchParams interface, the get() method returns the first value of the input search parameter. Syntax: URLSearchParams.get(name) Returns:The string will be returned if the name-value… Read More
In URLSearchParams interface, the delete() method deletes the parameter specified by user and all its associated values. Syntax: URLSearchParams.delete(name) Parameters: name – The name of… Read More
In URLSearchParams interface, the has() method returns a Boolean which tells us that if the parameter with input name exists it will return true, else… Read More
Before we go on to learn about URL objects API we need to know a brief about URL. If you ever wanted to provide utilities… Read More
In URLSearchParams interface, the append() method adds a key/value pair specified by user. Syntax: URLSearchParams.append(name, value) Parameters: name – Input the parameter name to append… Read More
In URLSearchParams interface, the entries() method returns an iterator which allows to iterate through all the key/value pairs present in the object.The key/value are USVString… Read More