GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing javascript.info — Filter unique array members back to the lesson Filter unique array membersimportance: 4 Let Create a function For instance:
Let’s walk the array items:
The code works, but there’s a potential performance problem in it. The method So if there are That’s not a problem by itself, because JavaScript engines are very fast, so walk But we do such test for each element of So if So the solution is only good for small arrays. Further in the chapter Map and Set we’ll see how to optimize it. |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |