This is straightforward using lodash:
var objects = [{ 'x': 4 }, { 'x': 4 }];
_.sortedIndexBy( objects, {'x':3}, 'x' );
But how to find an index when sorted on and accounting for multiple fields? For example:
var objects = [{ 'x': 4, 'y': 1 }, { 'x': 4, 'y': 3}];
_.sortedIndexBy( objects, {'x':4, 'y':6}, ['x', 'y'] );
(this second example does not work, but suggests what I am trying to do)