<commit_before># observ-thunk [![Build Status](https://travis-ci.org/bendrucker/observ-thunk.svg?branch=master)](https://travis-ci.org/bendrucker/observ-thunk)

> Wrap a listener to prevent multiple calls for identical values


## Install

```
$ npm install --save observ-thunk
```


## Usage

```js
var ObservThunk = require('observ-thunk')
var Observ = require('observ')
var observable = Observ()

observable(ObservThunk(function (value) {
  console.log(value)  
}))

observable.set(1)
observable.set(1)
observable.set(1)<commit_msg>Update description<commit_after># observ-thunk [![Build Status](https://travis-ci.org/bendrucker/observ-thunk.svg?branch=master)](https://travis-ci.org/bendrucker/observ-thunk)

> Wrap a listener function to prevent multiple calls for identical values


## Install

```
$ npm install --save observ-thunk
```


## Usage

```js
var ObservThunk = require('observ-thunk')
var Observ = require('observ')
var observable = Observ()

observable(ObservThunk(function (value) {
  console.log(value)  
}))

observable.set(1)
observable.set(1)
observable.set(1)
{'fraction_non_alphanumeric': 0.15682656826568267, 'fraction_numerical': 0.005535055350553505, 'mean_word_length': 5.420118343195266, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2693837', 'n_tokens_mistral': 381, 'n_tokens_neox': 365, 'n_words': 73}