lib/jsonpath-object-transform.js
/**
   * Step through data object and apply path transforms.
   *
   * @param {object} data
   * @param {object} path
   * @param {object} result
   * @param {string} key
   */
Step through data object and apply path transforms.
Step through data object and apply path transforms .
function walk(data, path, result, key) {
    var fn;
    switch (type(path)) {
      case 'string':
        fn = seekSingle;
        break;
      case 'array':
        fn = seekArray;
        break;
      case 'object':
        fn = seekObject;
        break;
    }
    if (fn) {
      fn(data, path, result, key);
    }
  }
function walk ( data , path , result , key ) { var fn ; switch ( type ( path ) ) { case 'string' : fn = seekSingle ; break ; case 'array' : fn = seekArray ; break ; case 'object' : fn = seekObject ; break ; } if ( fn ) { fn ( data , path , result , key ) ; } }
Step through data object and apply path transforms.
Step through data object and apply path transforms .