Unexpected suggestions on an array - it suggests the indices of contained elements #11197
Labels
bug
Issue identified by VS Code Team member as probable bug
debug
Debug viewlet, configurations, breakpoints, adapter issues
*duplicate
Issue identified as a duplicate of another issue(s)
Milestone
Steps to Reproduce:
var _ = require('lodash');
var hello = _.capitalize('hello world');
var users = [
{ 'user': 'barney', 'age': 36, 'active': false },
{ 'user': 'fred', 'age': 40, 'active': true }
];
_.reject(users, function(o) { return !o.active; });
// ➜ objects for ['fred']
// The
_.matches
iteratee shorthand._.reject(users, { 'age': 40, 'active': true });
// ➜ objects for ['barney']
// The
_.matchesProperty
iteratee shorthand._.reject(users, ['active', false]);
// ➜ objects for ['fred']
The text was updated successfully, but these errors were encountered: