src/array/pull.js
function shift(arr, index) {
    for (let i = index; i < arr.length; i++) {
        arr[i] = arr[i + 1];
    }
    delete arr[arr.length - 1];
    arr.length -= 1;
}
function shift(arr, index) {
    for (let i = index; i < arr.length; i++) {
        arr[i] = arr[i + 1];
    }
    delete arr[arr.length - 1];
    arr.length -= 1;
}
function shift ( arr , index ) { for ( let i = index ; i < arr . length ; i ++ ) { arr [ i ] = arr [ i + 1 ] ; } delete arr [ arr . length - 1 ] ; arr . length -= 1 ; }
removes array item by given index
removes array item by given index