guest271314 (2019-04-05T18:35:53.000Z)
Two possible solutions to the requirement of not being able to change a
"type" both include utilizing `const`.

1. Using `Object.freeze()`

`const x = Object.freez([1,2,3])`

2. Using `Promise.resolve()`

`const x = Promise.resolve([1,2,3])`

neither of which can be deleted or changed within the current scope.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20190405/b8d4de9e/attachment.html>
guest271314 at gmail.com (2019-04-05T19:14:27.446Z)
Two possible solutions to the requirement of not being able to change a
"type" both include utilizing `const`.

1. Using `Object.freeze()`

`const x = Object.freeze([1,2,3])`

2. Using `Promise.resolve()`

`const x = Promise.resolve([1,2,3]); x.then(data => /* data will always be [1,2,3] */)`

neither of which can be deleted or changed within the current scope; i.e, Is it possible to delete a variable declared using const? https://stackoverflow.com/questions/42424019/is-it-possible-to-delete-a-variable-declared-using-const
guest271314 at gmail.com (2019-04-05T19:08:47.734Z)
Two possible solutions to the requirement of not being able to change a
"type" both include utilizing `const`.

1. Using `Object.freeze()`

`const x = Object.freeze([1,2,3])`

2. Using `Promise.resolve()`

`const x = Promise.resolve([1,2,3])`

neither of which can be deleted or changed within the current scope Is it possible to delete a variable declared using const? https://stackoverflow.com/questions/42424019/is-it-possible-to-delete-a-variable-declared-using-const
guest271314 at gmail.com (2019-04-05T18:37:50.248Z)
Two possible solutions to the requirement of not being able to change a
"type" both include utilizing `const`.

1. Using `Object.freeze()`

`const x = Object.freeze([1,2,3])`

2. Using `Promise.resolve()`

`const x = Promise.resolve([1,2,3])`

neither of which can be deleted or changed within the current scope.