text: 'use strict';
  
  // MODULES //
  
  var isObject = require( 'validate.io-object' ),
  	isBoolean = require( 'validate.io-boolean-primitive' );
  
  
  // VALIDATE //
  
  /**
  * FUNCTION: validate( opts, options )
  *	Validates function options.
  *
  * @param {Object} opts - destination for validated options
  * @param {Object} options - function options
  * @param {Boolean} [options.copy] - boolean indicating whether to return a new data structure
  * @returns {Null|Error} null or an error
  */
  function validate( opts, options ) {
  	if ( !isObject( options ) ) {
  		return new TypeError( 'fliplr()::invalid input argument. Options argument must be an object. Value: `' + options + '`.' );
  	}
  	if ( options.hasOwnProperty( 'copy' ) ) {
  		opts.copy = options.copy;
  		if ( !isBoolean( opts.copy ) ) {
  			return new TypeError( 'fliplr()::invalid option. Copy option must be a boolean primitive. Option: `' + opts.copy + '`.' );
  		}
  	}
  	return null;
  } // end FUNCTION validate()
  
  
  // EXPORTS //
  
  module.exports = validate;
  