# state()

***

```javascript
/**
 * @param  {String} type
 * @return {Void}
 */
state(type)
```

***

Save, load or clear saved states. See [Using States](https://mobius1.github.io/Selectable/using-states.html) for more info.

***

The method accepts a single argument as a `String` and can be the following:

* `"save"` - saves the current selection.
* `"undo"` - moves back to the last selection
* `"redo"` - restores the last undone selection
* `"clear"` - removes all saved selections.

***
