code: function findDependency(name, packageJson) {
    if (packageJson.dependencies && packageJson.dependencies[name]) {
      return packageJson.dependencies[name];
    }
    if (packageJson.devDependencies && packageJson.devDependencies[name]) {
      return packageJson.devDependencies[name];
    }
    return null;
  }
docs: Find package in project’s dependencies or devDependencies.
  
  @param {string} name Package name.
  @param {Object} packageJson package.json.
  @returns {string}