Remove specific element in an Array
Given an array and a number, remove the specific element based on the given number. Return the updated array.
Sample Code:
function rmvSpec(arr,i) {
// Enter your logic here...
}
Examples:
Input: ['Mon','Tues','Wed'],1
Output: ['Mon','Wed']
Explanation: Element 'Tues' at index 1 has been removed.
Input: [1,2,3],0
Output: [2,3]
Explanation: Element 1 at index 0 has been removed.