src/basis.js
function factory(fn){
    if (typeof fn != 'function')
      fn = getter(fn);

    var result = function(value){
      return fn(value);
    };
    /** @cut */ result = devInfoResolver.patchFactory(result);
    result.factory = FACTORY;

    return result;
  }
function factory(fn){
    if (typeof fn != 'function')
      fn = getter(fn);

    var result = function(value){
      return fn(value);
    };
    /** @cut */ result = devInfoResolver.patchFactory(result);
    result.factory = FACTORY;

    return result;
  }
function factory ( fn ) { if ( typeof fn != 'function' ) fn = getter ( fn ) ; var result = function ( value ) { return fn ( value ) ; } ; /** @cut */ result = devInfoResolver . patchFactory ( result ) ; result . factory = FACTORY ; return result ; }
Make factory function from getter.
@param {function(value)|string} fn Base for getter.
@return {function(value)} Factory function.
Make factory function from getter .