Author: Not specified Language: javascript
Description: Not specified Timestamp: 2018-04-17 10:28:55 +0000
View raw paste Reply
  1. // _.matchesProperty
  2. console.log( _.find(data, ['action','sing']) );  // {action:'sing'}
  3. // _.matches
  4. console.log( _.find(data, {action:'dance'}) );  // {action:'dance'}
  5.  
  6. console.log( _.find(data, 'action') );  // {action:'walk'}
View raw paste Reply