Question : remove every element of array which starts with char text
Answered by : evil-earthworm-ev1gkkra7m07
arr = arr.filter(function (item) { return item.indexOf("ftp_") !== 0;
});
Source : https://stackoverflow.com/questions/18518855/remove-all-items-in-array-that-start-with-a-particular-string/18518899 | Last Update : Mon, 09 Aug 21