remove unnecessary Array.indexOf method dependency
0.2.2