Uses Object.freeze to freeze all object and array expressions.
OTHER License
Uses Object.freeze
to freeze all object and array expressions.
Input:
const config = {
firstThreeAlphabetLetters: [
'a',
'b',
'c'
]
};
Output:
const config = Object.freeze({
firstThreeAlphabetLetters: Object.freeze([
'a',
'b',
'c'
])
});
To enforce complete immutability.
N/A