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
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
>
> 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
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
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