So, here it would be:
```js
setStateFor(button, window, { checked: isChecked });
```
And I would avoid to makes this call if the source is actually the `button` – you basically set back the same value and `setStateFor` makes a lot of calls.