Imagine this situation;
var defaultArr = ['a', 'b', 'c', 'd'];
var availArr = [];
var selectedArr = [];
When passing certain index
's values as parameters, the array needs to be split up.
For example:
If Array Index : 0,2
Desired outcome:
availArr = ['b', 'd'];
selectedArr = ['a', 'c'];
Is there a built-in method to accomplish this?