3 ms·
I prefer importing whole modules too. One of the benefit is much easier code reviews: Imagine this diff in the middle of a file (in Javascript) if (includes
by strajk 10y ago
I prefer importing whole modules too. One of the benefit is much easier code reviews:
Imagine this diff in the middle of a file (in Javascript)
if (includes(users, userId)) {
open(load(userId))
}
vs
if (_.includes(users, userId)) {
Modal.open(UserApi.load(userId))
}