Use Array.isArray
Add tests
Add `npm test` and devDependencies