function functor(v) {
    return typeof v === "function" ? v : function () {
        return v;
    };
}
Creates a function that returns v. If v is a function then it
is returned instead.

@return {Function}