Liking cljdoc? Tell your friends :D

js.Map

The Map object holds key-value pairs and remembers the original order of the keys.

The Map object holds key-value pairs and remembers the original
order of the keys.
raw docstring

clearcljs

(clear this)

Method.

The clear() method removes all elements from a Map object.

myMap.clear();

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/clear

Method.

The clear() method removes all elements from a Map object.

`myMap.clear();`

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/clear`
sourceraw docstring

deletecljs

(delete this key)

Method.

The delete() method removes the specified element from a Map by key.

myMap.delete(key);

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/delete

Method.

The delete() method removes the specified element from a Map
by key.

`myMap.delete(key);`

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/delete`
sourceraw docstring

entriescljs

(entries this)

Method.

The entries() method returns a new Iterator object that contains [key, value] pairs for each element in the Map object in insertion

myMap.entries()

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/entries

Method.

The entries() method returns a new Iterator object that contains
[key, value] pairs for each element in the Map object in insertion

`myMap.entries()`

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/entries`
sourceraw docstring

for-eachcljs

(for-each this & args)

Method.

The forEach() method executes a provided function once per each pair in the Map object, in insertion order.

myMap.forEach(callback[, thisArg])

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/forEach

Method.

The forEach() method executes a provided function once per each
pair in the Map object, in insertion order.

`myMap.forEach(callback[, thisArg])`

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/forEach`
sourceraw docstring

getcljs

(get this key)

Method.

The get() method returns a specified element from a Map object.

myMap.get(key);

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/get

Method.

The get() method returns a specified element from a Map object.

`myMap.get(key);`

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/get`
sourceraw docstring

hascljs

(has this key)

Method.

The has() method returns a boolean indicating whether an element the specified key exists or not.

myMap.has(key);

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/has

Method.

The has() method returns a boolean indicating whether an element
the specified key exists or not.

`myMap.has(key);`

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/has`
sourceraw docstring

keyscljs

(keys this)

Method.

The keys() method returns a new Iterator object that contains keys for each element in the Map object in insertion order.

myMap.keys()

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/keys

Method.

The keys() method returns a new Iterator object that contains
keys for each element in the Map object in insertion order.

`myMap.keys()`

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/keys`
sourceraw docstring

lengthcljs

(length this)

Property.

The value of the length property is 0. To count how many elements are in a Map, use Map.prototype.size.

Property.

The value of the length property is 0.
To count how many elements are in a Map, use Map.prototype.size.
sourceraw docstring

prototypecljs

(prototype this)

Property.

The Map.prototype property represents the prototype for the js.Map

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/prototype

Property.

The Map.prototype property represents the prototype for the `js.Map`

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/prototype`
sourceraw docstring

setcljs

(set this key value)

Method.

The set() method adds or updates an element with a specified and a value to a Map object.

myMap.set(key, value);

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/set

Method.

The set() method adds or updates an element with a specified
and a value to a Map object.

`myMap.set(key, value);`

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/set`
sourceraw docstring

set-length!cljs

(set-length! this val)

Property.

The value of the length property is 0. To count how many elements are in a Map, use Map.prototype.size.

Property.

The value of the length property is 0.
To count how many elements are in a Map, use Map.prototype.size.
sourceraw docstring

set-prototype!cljs

(set-prototype! this val)

Property.

The Map.prototype property represents the prototype for the js.Map

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/prototype

Property.

The Map.prototype property represents the prototype for the `js.Map`

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/prototype`
sourceraw docstring

set-size!cljs

(set-size! this val)

Property.

The size accessor property returns the number of elements in js.Map object.

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/size

Property.

The size accessor property returns the number of elements in
`js.Map` object.

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/size`
sourceraw docstring

sizecljs

(size this)

Property.

The size accessor property returns the number of elements in js.Map object.

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/size

Property.

The size accessor property returns the number of elements in
`js.Map` object.

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/size`
sourceraw docstring

valuescljs

(values this)

Method.

The values() method returns a new Iterator object that contains values for each element in the Map object in insertion order.

myMap.values()

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/values

Method.

The values() method returns a new Iterator object that contains
values for each element in the Map object in insertion order.

`myMap.values()`

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/values`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close