Fuse - 1.9.0 Observable any() function not working


#1

var vehicles = Observable(
{type: “car”, name: “SuperSpeeder 2000”},
{type: “car”, name: “Initial Dash 2k00”},
{type: “boat”, name: “Floaty McFloatface”}
);
var hasBoats = vehicles.any(function(x) { return x.type === “boat”;});
console.log(JSON.stringify(hasBoats.value));

var hasBoats = vehicles.any({type: “boat”});
console.log(JSON.stringify(hasBoats.value));

Output:
[iPhone]: null
[iPhone]: null


#2

SOLVED: any() function is reactive.