bulletproof-nodejs icon indicating copy to clipboard operation
bulletproof-nodejs copied to clipboard

Where do you add utility functions and constants?

Open paulwongx opened this issue 4 years ago • 1 comments

Where do you put files for:

  1. Utility functions like formatting a date
  2. Constants

paulwongx avatar Aug 09 '21 00:08 paulwongx

For constants, I generally use the config file. And for utility functions, I usually create a service, or put them in a related service, generally as a static function

santiq avatar Aug 09 '21 13:08 santiq