src/array/pull.js
function pullByIndex(arr, index) {
    if (index < arr.length) {
        const value = arr[index];
        shift(arr, index);
        return value;
    }

    return undefined;
}
function pullByIndex(arr, index) {
    if (index < arr.length) {
        const value = arr[index];
        shift(arr, index);
        return value;
    }

    return undefined;
}
function pullByIndex ( arr , index ) { if ( index < arr . length ) { const value = arr [ index ] ; shift ( arr , index ) ; return value ; } return undefined ; }
removes array item by given index if the index is not over array length returns removed value
removes array item by given index if the index is not over array length returns removed value