This code was simply copied verbatim from jQuery. It looks like it could more reasonably be replaced by typeof(target) !== "function"