text: /*
  Have the function Consecutive(arr) take the array of integers stored in arr and return the
  minimum number of integers needed to make the contents of arr consecutive from the lowest
  number to the highest number. For example: If arr contains [4, 8, 6] then the output
  should be 2 because two numbers need to be added to the array (5 and 7) to make it a
  consecutive array of numbers from 4 to 8. Negative numbers may be entered as parameters
  and no array will have less than 2 elements.
  */
  
  const info = {
  	name: 'Consecutive',
  	number: 13,
  	level: 'medium',
  	methods: ['Array.from()', 'sort()'],
  	concepts: ['Set objects', 'length property']
  };
  
  function Consecutive(arr) {
  	const onceArray = Array.from(new Set(arr))
  		.sort((val1, val2) => val1 - val2);
  	const finalIndex = onceArray.length - 1;
  	return onceArray[finalIndex] - onceArray[0] - (onceArray.length - 1);
  }
  
  module.exports = {
  	Consecutive,
  	info
  };
  