Problem

Return true if some value appears in both a and b.

Examples

  • commonElement([1, 2], [2, 3]) -> true
Compile and test (Ctrl+Enter)