You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
259 B

1 year ago
  1. /* eslint-disable */
  2. var array = require('../wxs/array.wxs');
  3. function isActive (activeList, itemId) {
  4. if (array.isArray(activeList)) {
  5. return activeList.indexOf(itemId) > -1;
  6. }
  7. return activeList === itemId;
  8. }
  9. module.exports.isActive = isActive;