google-play-scraper icon indicating copy to clipboard operation
google-play-scraper copied to clipboard

Don't mutate options objects

Open facundoolano opened this issue 7 years ago • 0 comments

Most of the methods take an options object and then mutate by setting default values, like here. This is not a good practice, since the methods don't own those objects and are introducing unexpected side effects. Use Object.assign instead to make copies of the options.

facundoolano avatar Jun 02 '18 15:06 facundoolano