---
title: "Apps Script V8: Maps and Sets &#8211; Desktop liberation"
author: "Martin Hawksey"
date: 2020-03-25T09:00:00+00:00
modified: 2020-03-23T21:03:37+00:00
canonical_url: https://pulse.appsscript.info/p/2020/03/apps-script-v8-maps-and-sets-desktop-liberation/
markdown_url: https://pulse.appsscript.info/p/2020/03/apps-script-v8-maps-and-sets-desktop-liberation.md
categories:
  - "Snippet"
  - "V8"
tags:
  - "@brucemcpherson"
  - "ramblings.mcpher.com"
description: "Sets and Maps can often be a cleaner way of storing data than using Objects or Arrays, even though at first glance they may seem a little redundant. Unlike an array, they are aware of..."
---

# Apps Script V8: Maps and Sets &#8211; Desktop liberation

> Sets and Maps can often be a cleaner way of storing data than using Objects or Arrays, even though at first glance they may seem a little redundant. Unlike an array, they are aware of what else is in the map or set (so you can avoid duplicates), and unlike an object, you can use anything as the key – including the item value itself

Given many Apps Script projects focus on manipulating data Bruce Mcpherson provides a useful introduction to Maps and Sets.

Source: *[Apps Script V8: Maps and Sets – Desktop liberation*](https://ramblings.mcpher.com/apps-script/apps-script-v8/apps-script-v8-maps-and-sets/)

---

*Published by [Martin Hawksey](https://pulse.appsscript.info/p/author/admin/) on [Pulse](https://pulse.appsscript.info/). Original article: [https://pulse.appsscript.info/p/2020/03/apps-script-v8-maps-and-sets-desktop-liberation/](https://pulse.appsscript.info/p/2020/03/apps-script-v8-maps-and-sets-desktop-liberation/)*
