facundoolano/google-play-scraper

Don't mutate options objects

Ouverte

#238 ouverte le 2 juin 2018

 (1 commentaire) (0 réaction) (0 personne assignée)JavaScript (723 forks)github user discovery
buggood first issue

Métriques du dépôt

Stars
 (2 948 étoiles)
Métriques de merge PR
 (Merge moyen 103j 2h) (4 PRs mergées en 30 j)

Description

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.

Guide contributeur