Problem

Return true if target appears in the array.

Examples

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