Great post! 5th & 10th points were my major take away! Thanks!
I don't know if this would be helpful.
For defining constants, instead of regular object,
const config = { APP_ENV: 'local', API_TOKEN: 'BREWING_SOMETHING_AWESOME', }
define constants with Object.freeze().
Object.freeze()
const config = Object.freeze({ APP_ENV: 'local', API_TOKEN: 'BREWING_SOMETHING_AWESOME', });
This way, you won't be able to change the entries accidentally.
Happy Coding ๐งก
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great post! 5th & 10th points were my major take away! Thanks!
I don't know if this would be helpful.
For defining constants, instead of regular object,
define constants with
Object.freeze()
.This way, you won't be able to change the entries accidentally.
Happy Coding ๐งก