index.wxs 259B

12345678910111213
  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;