Leon4gr45's picture
Upload folder using huggingface_hub (part 9)
b593f0b verified
Raw
History Blame Contribute Delete
301 Bytes
// @flow
import assert from 'assert';
export function indexTouches(touches: Array<Touch>, points: Array<Point>) {
assert(touches.length === points.length);
const obj = {};
for (let i = 0; i < touches.length; i++) {
obj[touches[i].identifier] = points[i];
}
return obj;
}