mirror of
https://github.com/samsonjs/batteries.git
synced 2026-03-25 09:15:46 +00:00
10 lines
221 B
JavaScript
10 lines
221 B
JavaScript
var ext = exports.ObjectExt = {
|
|
|
|
cmp: function(a, b) {
|
|
if (a === b) return 0;
|
|
if (a < b) return -1;
|
|
if (a > b) return 1;
|
|
throw new Error('cannot effectively compare values');
|
|
}
|
|
|
|
};
|