Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dolgarev/meteor-reactive-var-increment-and-decrement

Adds methods "inc" and "dec" to ReactiveVar.
https://github.com/dolgarev/meteor-reactive-var-increment-and-decrement

meteor meteorjs

Last synced: 19 days ago
JSON representation

Adds methods "inc" and "dec" to ReactiveVar.

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.org/dolgarev/meteor-reactive-var-increment-and-decrement.svg?branch=master)](https://travis-ci.org/dolgarev/meteor-reactive-var-increment-and-decrement)
meteor-reactivevar-increment-and-decrement
====================
Adds methods "inc" and "dec" to ReactiveVar.

```js
var v = new ReactiveVar(1);
v.inc(); // => 2
v.inc(3); // => 5
v.dec(4); // => 1
v.dec(); // => 0
```