facundoolano/google-play-scraper

Don't mutate options objects

Offen

#238 geöffnet am 02.06.2018

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (723 Forks)github user discovery
buggood first issue

Repository-Metriken

Stars
 (2.948 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 103T 2h) (4 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide