worked on GarageApp stuff
This commit is contained in:
parent
60aaf17af3
commit
eb606572b0
51919 changed files with 2168177 additions and 18 deletions
17
node_modules/@mui/material/ToggleButtonGroup/isValueSelected.js
generated
vendored
Normal file
17
node_modules/@mui/material/ToggleButtonGroup/isValueSelected.js
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = isValueSelected;
|
||||
// Determine if the toggle button value matches, or is contained in, the
|
||||
// candidate group value.
|
||||
function isValueSelected(value, candidate) {
|
||||
if (candidate === undefined || value === undefined) {
|
||||
return false;
|
||||
}
|
||||
if (Array.isArray(candidate)) {
|
||||
return candidate.includes(value);
|
||||
}
|
||||
return value === candidate;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue