For some reason console.log and fruits.where is not run. Anyone know why? Fuse version: 0.33.0. Windows 10. Clicked filterFavorites is showing.
function filterFavorites () {
console.log('Clicked filterFavorites');
var fruits = Observable(
{ name: "Apple" , color: "red" },
{ name: "Lemon" , color: "yellow" },
{ name: "Pear" , color: "green" },
{ name: "Banana", color: "yellow" });
var goodFruits = fruits.where(function(e){
console.log(e.color)
return e.color === "yellow";
});
}