8 kyu

Be Concise IV - Index of an element in an array

6,044 of 8,395donaldsebleung

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 Trained17171
Total Skips495
Total Code Submissions59587
Total Times Completed8395
JavaScript Completions6044
CoffeeScript Completions26
Python Completions2217
Java Completions283
Total Stars115
% of votes with a positive feedback rating83% of 1334
Total "Very Satisfied" Votes995
Total "Somewhat Satisfied" Votes219
Total "Not Satisfied" Votes120
Ad
Contributors
  • donaldsebleung Avatar
  • Javatlacati Avatar
  • smile67 Avatar
  • Chrono79 Avatar
  • WestwardLand968 Avatar
  • dcrego Avatar
  • Kacarott Avatar
  • pablo.bf Avatar
  • LosBlobbos Avatar
Ad