function last(array, number){
      let myArr = [];
if(!Array.isArray(array) || number < 0){
    return myArr;
} else if(typeOf(number) !== 'number'){
    return array[array.length - 1];
} else if(number > array.length){
    return array;
} else {
    return array.slice(-number);
}
    
 }
/**
  * last: Designed to return the last element or last specified number of elements
  * inside of an array.
  * 
  * @param {Array} array: This parameter is used to indicate the array in which to access.
  *  If the passed in array isn't an array, an empty array will be returned. 
  * @param {Number} number: a number to indicate the specified amount of elements to be 
  * returned. If Number is not given or not a number, return the last element in the Array.
 * If Number is greater than the length of the array param then the entire array will be 
 * returned. If number is a negative number, then an empty array will be returned. 
  * 
  * @return {Array}: An array with the specified number of elements removed from the
  * passed in array param.
  */
Designed to return the last element or last specified number of elements
inside of an array.

@param {Array} array: This parameter is used to indicate the array in which to access.
If the passed in array isn't an array, an empty array will be returned.
@param {Number} number: a number to indicate the specified amount of elements to be
returned. If Number is not given or not a number, return the last element in the Array.
If Number is greater than the length of the array param then the entire array will be
returned. If number is a negative number, then an empty array will be returned.

@return {Array}: An array with the specified number of elements removed from the
passed in array param.
Designed to return the last element or last specified number of elements inside of an array . @param { Array } array : This parameter is used to indicate the array in which to access . If the passed in array isn ' t an array an empty array will be returned . @param { Number } number : a number to indicate the specified amount of elements to be returned . If Number is not given or not a number return the last element in the Array . If Number is greater than the length of the array param then the entire array will be returned . If number is a negative number then an empty array will be returned . @return { Array } : An array with the specified number of elements removed from the passed in array param .
function last(array, number){
      let myArr = [];
if(!Array.isArray(array) || number < 0){
    return myArr;
} else if(typeOf(number) !== 'number'){
    return array[array.length - 1];
} else if(number > array.length){
    return array;
} else {
    return array.slice(-number);
}
 }
function last ( array , number ) { let myArr = [ ] ; if ( ! Array . isArray ( array ) || number < 0 ) { return myArr ; } else if ( typeOf ( number ) !== 'number' ) { return array [ array . length - 1 ] ; } else if ( number > array . length ) { return array ; } else { return array . slice ( - number ) ; } }
last: Designed to return the last element or last specified number of elements
 inside of an array.
last : Designed to return the last element or last specified number of elements inside of an array .