I'm curious to know if there is a utility function available that allows for joining arrays while also providing an index. Perhaps Prototype or jQuery already have this feature, but if not, I am willing to create it myself :)
What I envision is something like
var array= ["a", "b", "c", "d"];
function Array.prototype.join(seperator [, startIndex, endIndex]){
// code
}
so that array.join("-", 1, 2) would result in "b-c"
Does anyone know of a similar utility function within a commonly used JavaScript Library?
Best regards,
globalworming