Hi,

I've got a javascript array:

var x = [
{id:22, name:'Merry'},
{id:26, name:'Poppins'},
{id:345, name:'Popcorn'}
];

Is it possible to create with Sencha Core a method which returns a sub array by a given param, like SQL command (select elements where name like '%Pop%').

function x(x, 'Pop') { } will returns:
[
{id:26, name:'Poppins'},
{id:345, name:'Popcorn'}
}.
Any help will be appreciate.
Thanks