function utilFunctor(value) {
    if (typeof value === 'function') return value;
    return function() {
        return value;
    };
}
a replacement for functor

@param {*} value any value
@returns {Function} a function that returns that value or the value if it's a function