Skip to content
Snippets Groups Projects
Commit 172b3826 authored by Martin Wortschack's avatar Martin Wortschack
Browse files

Merge branch 'typo-in-doc/development/fe_guide/style/javascript.md' into 'master'

docs: Fix typo in JavaScript style guide

See merge request gitlab-org/gitlab!57022
parents 9f1993a7 63ffb4ce
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -297,7 +297,7 @@ Strive to write many small pure functions and minimize where mutations occur
 
## Export constants as primitives
 
Prefer exporting constant primitives with a common namespace over exporting objects. This allows for better compile-time reference checks and helps to avoid accidential `undefined`s at runtime. In addition, it helps in reducing bundle sizes.
Prefer exporting constant primitives with a common namespace over exporting objects. This allows for better compile-time reference checks and helps to avoid accidental `undefined`s at runtime. In addition, it helps in reducing bundle sizes.
 
Only export the constants as a collection (array, or object) when there is a need to iterate over them, for instance, for a prop validator.
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment