facundoolano/google-play-scraper

Don't mutate options objects

Aperta

#238 aperta il 2 giu 2018

 (1 commento) (0 reazioni) (0 assegnatari)JavaScript (723 fork)github user discovery
buggood first issue

Metriche repository

Star
 (2948 stelle)
Metriche merge PR
 (Merge medio 103g 2h) (4 PR mergiate in 30 g)

Descrizione

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.

Guida contributor