Switched to Array.isArray for array test.

Added .jslintrc file.