this is very imperative.  We could do it in a more declaritive fashion like so:

```javascript
if (e.target.checked) {
  this.pending.add[val] = true;

}
```