Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/dolgarev/meteor-reactive-var-increment-and-decrement
- Owner: dolgarev
- License: mit
- Created: 2015-05-25T20:37:02.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-03T06:43:59.000Z (over 9 years ago)
- Last Synced: 2024-11-14T22:31:26.844Z (3 months ago)
- Topics: meteor, meteorjs
- Language: JavaScript
- Homepage: https://atmospherejs.com/liberation/reactive-var-inc-and-dec
- Size: 141 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```