3 ms·
I tend to use getter and setter functions to access globals and manage state. Advantage only the function that depends on the global needs to bring in the depe
by Gibbon1 2y ago
I tend to use getter and setter functions to access globals and manage state.
Advantage only the function that depends on the global needs to bring in the dependency.