Most fuel injected engines close the throttle plate completely at idle, and depend for idle speed adjustment on electronic feedback, rather than the old fashioned method of using a screw to adjust how far the throttle plate is cracked open. The IAC (idle air controller) is a little electrically controlled valve inside the throttle body, which determines how much air bypasses the throttle plate when idling, thus governing idle speed. If it clots up with carbon and sticks open, it's often a contributor to fast idle problems and failure to settle back to idle when you let off the gas. Ordinarily, the engine computer sends signals to the IAC when it senses changes in idle speed, and the IAC opens or closes quite quickly and precisely to compensate, but when it sticks, it won't act fast enough, or perhaps not at all, and idle speed gets erratic.
You can take the IAC out of a 4.0 and clean it. Do not force it open and shut by hand. It is not a plain solenoid, but a stepper motor, and can be damaged by forcing. Clean it with carburetor cleaner or other such solvents, and check for wear on the pintle at the end.