DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
Remove all index from array except the one jquery
var input = ['a','b','c','d','e','f']; input.length = 1; console.log(input); Run code snippet
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#Remove
#index
#array
#jquery
ADD COMMENT
Topic
COMMENT
Name
2+4 =
Submit