mixin({
'from': chain,
'select': map,
'where': filter,
'sortBy': sortByOrder
});
from(items)
.where( color==='blue' || color==='red' )
.sortBy(title)
.select(item=><div>item.category</div>)
.value()
import map from "lodash/fp/map";
import flatten from "lodash/fp/flatten";
import sortBy from "lodash/fp/sortBy";
import flow from "lodash/fp/flow";
const run = flow(map(x => [x,x*2]), flatten, sortBy(x=>x));
console.log(run([1,2,3]));