function fromBuffer( buffer ) {
	if ( !isBuffer( buffer ) ) {
		throw new TypeError( format( 'invalid argument. Must provide a Buffer. Value: `%s`.', buffer ) );
	}
	return Buffer.from( buffer );
}
Copies buffer data to a new `Buffer` instance.

@param {Buffer} buffer - buffer from which to copy
@throws {TypeError} must provide a `Buffer` instance
@returns {Buffer} new `Buffer` instance

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

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

var b2 = fromBuffer( b1 );
// returns <Buffer>