> For the complete documentation index, see [llms.txt](https://jscula.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jscula.gitbook.io/docs/utils/hash.md).

# hash()

Creates a short stable hash from a string.

```javascript
const id = hash('button.primary');

$('#button-id').text(id);
```
