facundoolano/google-play-scraper

Don't mutate options objects

开放

#238 创建于 2018年6月2日

 (1 条评论) (0 个反应) (0 位负责人)JavaScript (723 个派生)github user discovery
buggood first issue

仓库指标

星标
 (2,948 个星标)
PR 合并指标
 (平均合并 103天 2小时) (30 天内合并 4 个 PR)

描述

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.

贡献者指南