Fogh/isGirl — pull request #5 by itsananderson (2013-06-04 03:52:44+00:00)
Title: Add missing brace to .js and add some perf improvements

A closing brace for the "if" statement was missing. Added that, then decided to do some other performance improvements.

The new implementation memoizes the name list into the function once. This helps it avoid allocating a new array in memory every time the function is called.

It also uses the Array.indexOf function if it is available, rather than looping through the array manually.

Tested with the following code, which shows a 33% speed improvement over the previous implementation.

```html

```