function take( x, indices ) {
	var out;
	var i;

	out = [];
	for ( i = 0; i < indices.length; i++ ) {
		out.push( x[ indices[ i ] ] ); // use `Array#push` to ensure "fast" elements
	}
	return out;
}
Takes elements from an indexed array.

@param {Collection} x - input array
@param {NonNegativeIntegerArray} indices - list of indices
@returns {Array} output array

@example
var x = [ 1, 2, 3, 4 ];
var indices = [ 3, 1, 2, 0 ];

var y = take( x, indices );
// returns [ 4, 2, 3, 1 ]