node package manager
Loosely couple your services. Use Orgs to version and reuse your code. Create a free org ยป

cmp

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