lib/gulp-import-tasks.js
function parseTaskObject(task, options) {
  if (Array.isArray(task)) {
    return task;
  } else {
    return task.bind(null, gulp, ...options.params);
  }
}
function parseTaskObject(task, options) {
  if (Array.isArray(task)) {
    return task;
  } else {
    return task.bind(null, gulp, ...options.params);
  }
}
function parseTaskObject ( task , options ) { if ( Array . isArray ( task ) ) { return task ; } else { return task . bind ( null , gulp , ... options . params ) ; } }
This builds the task object. A gulp task may be either an array or a
function, so we must handle both. If it is an array, we return it
immediately, otherwise we create a new function with the correctly-bounded
parameters.

@param {Array|Function} task
@param {Object} options
@returns {Array|Function}
This builds the task object . A gulp task may be either an array or a function so we must handle both . If it is an array we return it immediately otherwise we create a new function with the correctly - bounded parameters .