feat(Array.findindex): port and modify from Array.findindex
remove unnecessary part from Array.of