joshblack / exponential-decay

Utility class for modeling exponential decay (increasing form)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

exponential-decay

Usage

$ npm install exponential-decay --save
import Decay from 'exponential-decay';

const decay = new Decay();
const handler = () => {
  console.log('Handler called');
};

// Register your handler that is triggered
// for each setTimeout callback called
decay.subscribe(handler);

About

Utility class for modeling exponential decay (increasing form)


Languages

Language:JavaScript 100.0%