VSCodeVim/Vim

Use objects as poor man's keyword arguments for some functions

Open

#522 opened on Jul 26, 2016

View on GitHub
 (1 comment) (0 reactions) (0 assignees)TypeScript (1,271 forks)batch import
help wantedkind/refactorsize/S

Repository metrics

Stars
 (12,664 stars)
PR merge metrics
 (Avg merge 9d 13h) (7 merged PRs in 30d)

Description

A couple of our functions have a few trailing boolean arguments, which makes invocations impossible to read.

Make these arguments into objects and use destructuring to improve readability.

Contributor guide