index.sjs 190 B

123456789
  1. function getChecked(value, values, multiple) {
  2. if (!multiple) {
  3. return value === values;
  4. }
  5. return (values || []).indexOf(value) > -1;
  6. }
  7. export default {
  8. getChecked: getChecked
  9. };