Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

cmp

0.0.2 • Public • Published

cmp - A library for general comparisons

REQUIREMENTS

EXAMPLES

> var cmp = require("cmp");
> cmp.cmp(1, 1);
0
> cmp.cmp(1, 2);
-1
> cmp.cmp(2, 1);
1
> cmp.cmp(1, [1,2,3]);
1
> cmp.eq([1,2,3], [1,2,3]);
true
> cmp.lte([1,2], [1,2,3]);
true

Keywords

none

install

npm i cmp

Downloadsweekly downloads

19

version

0.0.2

license

none

repository

githubgithub

last publish

collaborators

  • avatar