facundoolano/google-play-scraper

Don't mutate options objects

Aberta

#238 aberto em 2 de jun. de 2018

 (1 comentário) (0 reação) (0 responsável)JavaScript (723 forks)github user discovery
buggood first issue

Métricas do repositório

Stars
 (2.948 estrelas)
Métricas de merge de PR
 (Mesclagem média 103d 2h) (4 fundiu PRs em 30d)

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.

Guia do colaborador