feat(btoa): port and modify from Array.findindex

Also please change `array_of`, too.