Re: [Moo] Re: how to search data in an object.

2013-02-22 Thread Arian Stolwijk
Object.some / Object.every On Fri, Feb 22, 2013 at 11:06 AM, Hamburger wrote: > Hello, > thanks or all suggestions. > With Steffens solution I will get a complete object back. > What I need is only a true or false :) > > -- > > --- > You received this message because you are subscribed to the

Re: [Moo] Re: how to search data in an object.

2013-02-22 Thread Hamburger
Hello, thanks or all suggestions. With Steffens solution I will get a complete object back. What I need is only a true or false :) -- --- You received this message because you are subscribed to the Google Groups "MooTools Users" group. To unsubscribe from this group and stop receiving emails f

Re: [Moo] Re: how to search data in an object.

2013-02-21 Thread Arian Stolwijk
> > Array.each(obj, function(item, index){ > if (item == '456') console.log("info22:", item.id); > }); That won't work, use Object.filter/each instead, like Steffen said. On Thu, Feb 21, 2013 at 3:24 PM, Sitthykun LY wrote: > Try this one > > Array.each(obj, function(item, index){ > if

Re: [Moo] Re: how to search data in an object.

2013-02-21 Thread Sitthykun LY
Try this one Array.each(obj, function(item, index){ if (item == '456') console.log("info22:", item.id); }); Cheer!? On Thu, Feb 21, 2013 at 9:10 PM, n3on wrote: > Hi, > > you could use Object.filter: > http://mootools.net/docs/core/Types/Object#Object:Object-filter > > Take a look at this

[Moo] Re: how to search data in an object.

2013-02-21 Thread n3on
Hi, you could use Object.filter: http://mootools.net/docs/core/Types/Object#Object:Object-filter Take a look at this fiddle: http://jsfiddle.net/unlooped/K7WfE/7/ Best, Steffen On Thursday, February 21, 2013 11:41:36 AM UTC+1, Hamburger wrote: > > Hello, > I would like to find a value in an da