util: extract `uncurryThis` function for reuse
Extracts uncurryThis
function which is done in identical ways in a few places in lib/internal/util
dir.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines