string.Join("", Enumerable.Repeat("a", 8).ToArray());
The code above repeat "a" 8 times and returns "aaaaaaaa".
string.Join("", Enumerable.Repeat("a", 8).ToArray());
Sitecore.Data.ID.IsNullOrEmpty(myID)
var cars = [
{id: "F001", make: "Ford", model: "Fiesta",
colors: [
{id: 1, name: "Red"},
{id: 2, name: "Blue"}
]
},
{id: "T001", make: "Toyota", model: "Corolla",
colors: [
{id: 1, name: "Red"},
{id: 3, name: "Silver"}
]
},
{id: "T002", make: "Toyota", model: "Yaris",
colors: [
{id: 1, name: "Red"},
{id: 3, name: "Silver"},
{id: 4, name: "White"}
]
}
];
var toyotaCars = Enumerable.from(cars)
.where("c=> c.make == 'Toyota'");
var blueCars = Enumerable.from(cars)
.where("c=> c.colors.name == 'Blue'");
.where(function(c) {return (c.colors.name == 'Blue');})
var blueCars = Enumerable.from(cars)
.where(function(o) {
return (Enumerable.from(o.colors)
.where("c => c.name == 'Blue'").any());
});