function first(array, number){
     let myArr = [];
     if(!Array.isArray(array) || number < 0){
        return myArr;
    } else if(typeOf(number) !== 'number'){
        return array[0];
    } else if(number > array.length){
        return array;
    } else {
        return array.slice(0, number);
    }
 }
/**
 * first: Designed to return the first element or first 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 first 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 first element or first 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 first 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 first element or first 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 first 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 first(array, number){
     let myArr = [];
     if(!Array.isArray(array) || number < 0){
        return myArr;
    } else if(typeOf(number) !== 'number'){
        return array[0];
    } else if(number > array.length){
        return array;
    } else {
        return array.slice(0, number);
    }
 }
function first ( array , number ) { let myArr = [ ] ; if ( ! Array . isArray ( array ) || number < 0 ) { return myArr ; } else if ( typeOf ( number ) !== 'number' ) { return array [ 0 ] ; } else if ( number > array . length ) { return array ; } else { return array . slice ( 0 , number ) ; } }
first: Designed to return the first element or first specified number of elements
 inside of an array.
first : Designed to return the first element or first specified number of elements inside of an array .