A function exposed to the global scope with types:
arrayPairs(ary0: Array<T>, ary1: Array<T>): Array<T>
returns an Array consisting of elements that both arrays have, in pairs.
arrayPairs(ary0, ary1)
- Cole - 92 chrs
- Joshua - N/A
Note: Cole and Joshua came up with the same solution, so for the sake of variety, Joshua entered a different algorithm.