# Map Nodes

![](https://4209426742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Me1x4TD1HxodVbK1aDe%2Fuploads%2Fgit-blob-92c68198d0e34830489da31d253d6ea5aec4727e%2Fhelper-map.gif?alt=media)

This section consists of all the helper function nodes of map.

### Map | Remove

![](https://4209426742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Me1x4TD1HxodVbK1aDe%2Fuploads%2Fgit-blob-2e98c250392f2c348f41f5deb77ba639736dedf4%2Fmap-remove.png?alt=media)

This node removes the key and its associated value from the map, if present. If the key is not found, no changes are made to the map.

For example, map {“athul”: “chaudhary”}, key = “atul”, so node removes the key-value pairs that have key matching with the provided key. In this case, the node returns an empty map because there is only one value in the map.

### Map | Clear

![](https://4209426742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Me1x4TD1HxodVbK1aDe%2Fuploads%2Fgit-blob-61d49f5623b952eb1f9e0851eb5f8834bf88e29e%2Fmap-clear.png?alt=media)

This node removes all the values that are present in the provided map, and then it returns the empty map.

For example, map = {“atul” : “chaudhary”}, this node return the map ={} which is the empty map.

### Map | Add All

![](https://4209426742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Me1x4TD1HxodVbK1aDe%2Fuploads%2Fgit-blob-9ab978aa1a445b14f88618b74b2f98ebf31821c8%2Fmap-andall.png?alt=media)

This node helps you to Add all key/value pairs of others to this map. And If a key of other is already in the provided map, its value is overwritten \[make sure that both map have unique keys].

For example, map = {“CSE”:”atul”}, other map = {“IT”: “ashutosh”}, then the node return new map = {“CSE”: “atul”, “IT”: “ashutosh”}.

### Map | Contains Key

![](https://4209426742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Me1x4TD1HxodVbK1aDe%2Fuploads%2Fgit-blob-8e2228db234ce0d67443da086e45d2dbf0352220%2Fmap-containskey.png?alt=media)

This node checks if the provided key is present in the map.

For example, map = {“CSE”: “atul”}, key = “CSE”, then the node return true. If the key = “IT”, then the node return false.

### Map | Contains Value

![](https://4209426742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Me1x4TD1HxodVbK1aDe%2Fuploads%2Fgit-blob-3d8eb83000ee44061eb2085f8df7a9115e888c9b%2Fmap-containsvalue.png?alt=media)

This node checks if the provided value is present in the map.

For example, Input map: {"CSE": "atul"}, value: "atul" Output: true

Input map: {"CSE": "atul"}, value: "ashutosh" Output: false

### Map | Is Empty

![](https://4209426742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Me1x4TD1HxodVbK1aDe%2Fuploads%2Fgit-blob-64714da8d7b505250700395a9f62598024687768%2Fmap-isempty.png?alt=media)

This node checks if the provided map is empty or not if empty then it return true, if not then it returns false.

For example,Input map: {} Output: true Input map: {"CSE": "atul"} Output: false \[because map consists of some value ].

### Map | Length

![](https://4209426742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Me1x4TD1HxodVbK1aDe%2Fuploads%2Fgit-blob-3a3ef73df367cdc1c43821236cbba38c7a4ccacd%2Fmap-length.png?alt=media)

This node calculates the number of key-value pairs in the map.

For example,Input map: {"CSE": "atul", "IT": "ashutosh"} Output length: 2 \[because two key-values pairs are present].

### Map | Add Key Value

![](https://4209426742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Me1x4TD1HxodVbK1aDe%2Fuploads%2Fgit-blob-1b8186aa5e4a5dd9e38424aac30c4ef15ebd042d%2Fmap-addkeyvalu.png?alt=media)

This node adds a new key-value pair to the map to the existing map.

For example,Input map: {"CSE": "atul"}, key: "IT", value: "ashutosh" Output map: {"CSE": "atul", "IT": "ashutosh"}

### Map | Add Multiple Key Value

This node helps you to add multiple key-value pairs in a single go, this node returns the updated mao with all the newly added key-value pairs.

For example, Input map: {"atul": "chaudhary"}, keys: "sahaj", "ashutosh", values: "rana", "agarwal" Output map: {"atul": "chaudhary", "sahaj": "rana", "ashutosh": "agarwal"}

### Map | Get Value

![](https://4209426742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Me1x4TD1HxodVbK1aDe%2Fuploads%2Fgit-blob-5e1a36e3385b46e3a2991e09c019859a99c456a3%2Fmap-getvalue.png?alt=media)

This node retrieves the value associated with a specified key from the map.

For example, Input map: {"CSE": "atul"}, key: "CSE" Output value: "atul"

### Map | Get All Keys

![](https://4209426742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Me1x4TD1HxodVbK1aDe%2Fuploads%2Fgit-blob-6ba7d75d6350c01db10c5af9e368527bc2e1fd32%2Fmap-getallkey.png?alt=media)

This node retrieves all the keys present in the map.

For example, Input map: {"CSE": "atul", "IT": "ashutosh"} Output keys: \["CSE", "IT"]

### Map | Get All Values

![](https://4209426742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Me1x4TD1HxodVbK1aDe%2Fuploads%2Fgit-blob-d6eba8f5ed425bdbb92d00e36d9c03b7bfe52708%2Fmap-getallvalue.png?alt=media)

This node retrieves all the values present in the map.

For example, Input map: {"CSE": "atul", "IT": "ashutosh"} Output values: \["atul", "ashutosh"]

If you have any ideas to make Blup better you can share them through our [Discord community channel](https://discord.com/channels/940632966093234176/965313562425823303)

## Music to go with.

{% embed url="<https://open.spotify.com/playlist/0vvXsWCC9xrXsKd4FyS8kM?si=2c7f55bd3f944878>" %}
Lofi music
{% endembed %}
