DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
remove every element of array which starts with char text
arr = arr.filter(function (item) { return item.indexOf("ftp_") !== 0; });
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#remove
#element
#array
#starts
#char
#text
ADD COMMENT
Topic
COMMENT
Name
9+5 =
Submit