i dont know how it works but i've seen it done in movies. . .

Character B lets whip hit arm and warp around arm, Character b them yanks on whip and surprised character a eats dirt cause they werent expecing to suddenly have the whip yanked forward.

looks cool in movies. . .and everything capable of being done in movies for our amusment should also have a dynamic in dnd. . . somehwere. . .