Python Find Pattern In Array Javascript Function How To Use