mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
9 lines
133 B
JavaScript
9 lines
133 B
JavaScript
function isBetween(x, a, b) {
|
|
if (a > b) {
|
|
var _ref = [b, a];
|
|
a = _ref[0];
|
|
b = _ref[1];
|
|
}
|
|
return x > a && x < b;
|
|
}
|