locutus
Version:
Locutus other languages' standard libraries to JavaScript for fun and educational purposes
16 lines (15 loc) • 624 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.gt = gt;
const _operator_ts_1 = require("../_helpers/_operator.js");
function gt(a, b) {
// discuss at: https://locutus.io/python/operator/gt/
// parity verified: Python 3.12
// original by: Kevin van Zonneveld (https://kvz.io)
// note 1: Returns whether the left value is strictly greater than the right value.
// example 1: gt(3, 2)
// returns 1: true
// example 2: gt('a', 'b')
// returns 2: false
return (0, _operator_ts_1.pythonCompare)(a, b, 'gt') > 0;
}