Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

saas / mini-program / ydauto-business-assistant

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • ydauto-business-assistant
  • packageEquity
  • pages
  • carEquity
  • components
  • SecondStep
  • find.wxs
  • 张立顺's avatar
    初始化 · 7e48dc93
    张立顺 committed Mar 12, 2025
    7e48dc93
find.wxs 240 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14

  var find = function(arr,value,name){
    var idx;
    for(var i=0;i<arr.length;i++) {
        if(arr[i][name] == value) {
            idx=i;
            break
        }
    }
    return arr[idx]
  }
  module.exports = {
    find:find
  }