src/array/pull.js
function pullByValue(arr, value) {
    for (let i = 0; i < arr.length; i++) {
        if (arr[i] === value) {
            shift(arr, i);
            return value;
        }
    }

    return undefined;
}
function pullByValue(arr, value) {
    for (let i = 0; i < arr.length; i++) {
        if (arr[i] === value) {
            shift(arr, i);
            return value;
        }
    }

    return undefined;
}
function pullByValue ( arr , value ) { for ( let i = 0 ; i < arr . length ; i ++ ) { if ( arr [ i ] === value ) { shift ( arr , i ) ; return value ; } } return undefined ; }
finds array item that equals to given value and removes it returns removed value
finds array item that equals to given value and removes it returns removed value