Hi
This maybe more of a javascript question than QooxDoo and is due to my
as yet inadequate knowledge of the inner workings of Javascript.
I have an array in the form of:
Menu = [{id: "TEST1",color: "blue",name: "myBlue"},
{id: "TEST36",color: "grey",name: "myGrey"},
{id: "TEST2",color: "red",name: "myRed"},
{id: "TEST34",color: "grey",name: "anotherGrey"}]
In my case the array has more than 1000 elements and I want to find the
item containing the color == "grey" and the name =="myGrey". Is there a
means to use the indexOf method or do I need to just create my own
function for searching?
I was trying to use a builtin methods assuming it would be faster than
my custom code.
Thanks
Simon
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel