Started to work on type comparison in JS array