shift-shell/libmobileshell/declarative/qml/components/util.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
209 B
JavaScript
Raw Normal View History

/*
* SPDX-FileCopyrightText: 2021 Devin Lin <devin@kde.org>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
function applyMinMaxRange(min, max, num) {
return Math.min(max, Math.max(min, num));
}