function find_touch(touchlist, id) { for (const touch of touchlist) { if (touch.identifier === id) { return touch; } } return null; }