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 return
s 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
Similar Kata:
Stats:
Created | Apr 5, 2016 |
Published | Apr 6, 2016 |
Warriors Trained | 17171 |
Total Skips | 495 |
Total Code Submissions | 59587 |
Total Times Completed | 8395 |
JavaScript Completions | 6044 |
CoffeeScript Completions | 26 |
Python Completions | 2217 |
Java Completions | 283 |
Total Stars | 115 |
% of votes with a positive feedback rating | 83% of 1334 |
Total "Very Satisfied" Votes | 995 |
Total "Somewhat Satisfied" Votes | 219 |
Total "Not Satisfied" Votes | 120 |