I have an array like below
array_object = [video1.mp4 , video2.mp4 , video3.mp4];
I like to remove the .mp4 from the array so i used
array = array_object.slice(0,-4);
but it not working cause the string is in array. are there anyway to delete the .mp4 even it inside the array.