8 kyu

Be Concise IV - Index of an element in an array

6,058 of 8,425donaldsebleung

Description:

Be Concise IV - Index of an element in an array

Task

Provided is a function Kata which accepts two parameters in the following order: array, element and returns the index of the element if found and "Not found" otherwise. Your task is to shorten the code as much as possible in order to meet the strict character count requirements of the Kata. (no more than 161) You may assume that all array elements are unique.

Refactoring

Stats:

CreatedApr 5, 2016
PublishedApr 6, 2016
Warriors Trained17218
Total Skips496
Total Code Submissions59754
Total Times Completed8425
JavaScript Completions6058
CoffeeScript Completions26
Python Completions2231
Java Completions286
Total Stars115
% of votes with a positive feedback rating83% of 1338
Total "Very Satisfied" Votes998
Total "Somewhat Satisfied" Votes219
Total "Not Satisfied" Votes121
Ad
Contributors
  • donaldsebleung Avatar
  • Javatlacati Avatar
  • smile67 Avatar
  • Chrono79 Avatar
  • WestwardLand968 Avatar
  • dcrego Avatar
  • Kacarott Avatar
  • pablo.bf Avatar
  • LosBlobbos Avatar
Ad