Increment a number.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.editorconfig
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
index.es6
package.json
test.es6

README.md

npm Build Status

js-inc

Increment a number. Throws if applied to other type than Number.

Installation

npm i -S js-inc

Usage

import inc from 'js-inc';

inc(5); // 6