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