CodesJava

Easy learning with example program codes

WeakSet has() JavaScript

The WeakSet has() method checks if a WeakSet object contains the specified object element.

Syntax:

weakSetObj.has(value) 

Parameters:
value: It represents the element to be searched.

Returns:
It … Read More

WeakSet delete() JavaScript

The WeakSet delete() method deletes or remove an element from the WeakSet object.

Syntax:

weakSetObj.delete(value) 

Parameters:
value: It represents the element to be deleted.

Returns:
It returns … Read More

WeakSet add() JavaScript JS

The WeakSet add() method adds a new element to the end of a WeakSet object.

Syntax:

weakSetObj.add(value) 

Parameters:
value: It represents the element to add.

Returns:
Updated … Read More

WeakMap set() JavaScript

The JavaScript WeakMap set() method is used to add or modify the key-value pairs to WeakMap object. Key must be unique.

Syntax:

WeakMapObj.set(key,value) 

Parameters:
key: It represents … Read More

WeakMap has() JavaScript JS

The JavaScript WeakMap has() method to find out if the WeakMap object contains the specified value element.

Syntax:

WeakMapObj.has(key) 

Parameters:
key: It represents the key to be … Read More

WeakMap get() JavaScript

The JavaScript WeakMap get() method is used to retrieve the value of a specified key.

Syntax:

WeakMapObj.get(key) 

Parameters:
key: It represents the key of the element to … Read More

WeakMap delete() JavaScript

The JavaScript WeakMap delete() method deletes the specified element from a WeakMap object.

Syntax:

weakMapObj.delete(key);

Parameters:
key: It represents the element to be removed from the WeakMap … Read More

TypedArray toString() JavaScript

The Javascript TypedArray toString() method transforms the element of an array into a string separated by a comma “,”.

Syntax:

array.toString() 

Returns:
String.

Example:

<!DOCTYPE html
Read More

TypedArray values() JavaScript

The Javascript TypedArray values() method determines the values of the elements of an array.

Syntax:

array.values() 

Returns:
It returns the values of array elements.

Example:

<!DOCTYPE 
Read More









Copyright © 2019 CodesJava DMCA.com Protection Status