function map( x, fcn, thisArg ) {
	if ( hasMethod( x, 'map' ) ) {
		return x.map( fcn, thisArg );
	}
	return assign( x, zeros( x.length ), 1, 0, fcn, thisArg );
}
Applies a callback function to elements in an input array and assigns results to elements in a new output array.

@param {Collection} x - input array
@param {Function} fcn - callback function
@param {*} [thisArg] - callback execution context
@returns {Collection} output array

@example
var ones = require( '@stdlib/array/base/ones' );

function scale( x ) {
    return x * 10.0;
}

var x = ones( 4 );
var y = map( x, scale );
// returns [ 10.0, 10.0, 10.0, 10.0 ]