const data = [
{
id: "1",
name: "Apple iPhone 5c",
memory: "16GB, 32GB and RAM 1 GB"
},
{
id: "2",
name: "Apple iPhone 6",
memory: "16GB, 32GB and RAM 1 GB"
},
{
id: "3",
name: "Lenovo A6000",
memory: "16GB, 32GB and RAM 1 GB"
}
];
var pat = new RegExp('^le','i'), //означает что, значение name должно начинаться с le
newData = data.filter(el=> pat.test(el.name));
console.log(newData);