, Collection#where strict (===) . :
where: function(attrs, first) {
if (_.isEmpty(attrs)) return first ? void 0 : [];
return this[first ? 'find' : 'filter'](function(model) {
for (var key in attrs) {
if (attrs[key] !== model.get(key)) return false;
}
return true;
});
},
attrs[key] !== model.get(key) , 10 ( id) '10' ( , <input>), . , :
customers.where({musketeerId: 10});
-,
customers.where({musketeerId: '10'});
.
parseInt:
options.id = parseInt($input.val(), 10);