how the logic flows at: (books) => (shelf) => ...
const shelf1 = [
{ name: "name1", shelf: "a" },
{ name: "name2", shelf: "a" },
];
const shelf2 = [
{ name: "name3", shelf: "b" },
{ name: "name4", shelf: "b" },
];
const allBooks = [...shelf1, ...shelf2];
const filter = (books) => (shelf) => books.filter((b) => b.shelf === shelf);
const filterBy = filter(allBooks);
const booksOnShelf = filterBy("b");
i need a more verbose equivalent to this shortened expression, to help me to digest that magic