lib/index.js
function createTouchList(target, list) {
    if (Array.isArray(list) && list[0] && !Array.isArray(list[0])) {
        list = [list];
    }
    list = list.map(function (entry, index) {
        var x = entry[0];
        var y = entry[1];
        var id = entry[2] || index;
        return createTouch(x, y, target, id);
    });
    return document.createTouchList.apply(document, list);
}
function createTouchList(target, list) {
    if (Array.isArray(list) && list[0] && !Array.isArray(list[0])) {
        list = [list];
    }
    list = list.map(function (entry, index) {
        var x = entry[0];
        var y = entry[1];
        var id = entry[2] || index;
        return createTouch(x, y, target, id);
    });
    return document.createTouchList.apply(document, list);
}
/*
list can be either [[x, y], [x, y]] or [x, y]