Object (dictionary) that throws TypeError when trying to get an undefined property
npm install strict-dictObject (dictionary) that throws TypeError when trying to get an undefined property.
```
npm install strict-dict -S
`js
const obj = strictDict({
a: 1,
b: 2
})
obj.a // -> 1
obj.b // -> 2
obj.c // -> throws TypeError, since c is undefined
``
---
caiogondim.com ·
GitHub @caiogondim ·
Twitter @caio_gondim