function fromArray( arr ) {
	if ( !isCollection( arr ) ) {
		throw new TypeError( format( 'invalid argument. Must provide an array-like object. Value: `%s`.', arr ) );
	}
	return Buffer.from( arr );
}
Allocates a buffer using an octet array.

@param {Collection} arr - octet array
@throws {TypeError} must provide an array-like object
@returns {Buffer} new `Buffer` instance

@example
var fromArray = require( '@stdlib/buffer/from-array' );

var buf = fromArray( [ 1, 2, 3, 4 ] );
// returns <Buffer>