A mixin is an object containing a related subset of functions that another object borrows to extend its behavior. It supports code reuse without classical inheritance and can model multiple-inheritance-like composition in JavaScript. section 3.4
Adding SQL-like operations to Lodash
Lodash can mix in aliases for familiar query operations, then chain them over data: _.mixin({'select': _.map, 'from': _.chain, 'where': _.filter, 'sortBy': _.sortByOrder}); The resulting API supports expressions such as _.from(persons).where(...).sortBy(['firstname']).select(...).value().



