`typeof fn === "function"` works fine.