[Home] > Snippets  > Languages  > JavaScript  > Objects  >  Create an empty map that does not have properties

Create an empty map that does not have properties

JavaScript

// `map` doesn't have any properties
const map = Object.create(null)

// The following `map` has `__proto__` property
// const map = {}