Python Find Pattern In Array Javascript Function Examples