lib/Remove Specific Item From an Array.js
// program to remove item from an array
program to remove item from an array
program to remove item from an array
function removeItemFromArray(array, n) {
    const newArray = [];
    for ( let i = 0; i < array.length; i++) {
        if(array[i] !== n) {
            newArray.push(array[i]);
        }
    }
    return newArray;
}
function removeItemFromArray ( array , n ) { const newArray = [ ] ; for ( let i = 0 ; i < array . length ; i ++ ) { if ( array [ i ] !== n ) { newArray . push ( array [ i ] ) ; } } return newArray ; }
program to remove item from an array
program to remove item from an array