Javascript :Dynamic expression in filter function based on variable values
问题 I am trying to implement a filtering functionality for showing list of buses based on some parameters using lodash.js . Here are four parameters for filtering boardingPoint,droppingPoint,busType and operatorName and it will be populated in 4 dropdown menu's. Workflow When user select a boardingPoint the result should contains only list of buses with selected boarding points , If he select boardingPoint and droppingPoint result should contains only the list of buses with selected boradingPoint