Is there a better way than this to splice an array into another array in javascript
var string = \'theArray.splice(\'+start+\', \'+number+\',\"\'+newItemsArr
If you don't want to concatenate inserting items to first two parameters of Array.splice(), an elegant way is to use Function.bind() and Function.apply() together.
theArray.splice.bind(null, startIndex, deleteCount).apply(newItemsArray);