[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/DavidTimms/csv-sql/master/src/offset.js [Back]  [Original]

export function performOffset({offset}) {
    if (offset === null || offset === undefined) {
        return row => row;
    }
    
    let rowCount = 0;
    return row => {
        rowCount += 1;
        return rowCount > offset ? row : null;
    };
}

Web Proxy Viewer  |  New URL  |  Original Page