How to remove first and last element in an array?
For example:
var fruits = [\"Banana\", \"Orange\", \"Apple\", \"Mango\"];
Expecte
To remove element from array is easy just do the following
let array_splited = [].split('/'); array_splited.pop() array_splited.join('/')