KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have var ar = [1, 2, 3, 4, 5] and want some function getSubarray(array, fromIndex, toIndex) , that result of call getSubarray(ar, 1, 3) is new array [2, 3, 4] .
Tags (comma-separated)
Save Edits
Cancel