lib/index.js
function traverse(input, strict) {
  if (strict === undefined) strict = true;
  if (type(input) === 'object') {
    return traverseObject(input, strict);
  } else if (type(input) === 'array') {
    return traverseArray(input, strict);
  } else if (isodate.is(input, strict)) {
    return isodate.parse(input);
  }
  return input;
}
function traverse(input, strict) {
  if (strict === undefined) strict = true;
  if (type(input) === 'object') {
    return traverseObject(input, strict);
  } else if (type(input) === 'array') {
    return traverseArray(input, strict);
  } else if (isodate.is(input, strict)) {
    return isodate.parse(input);
  }
  return input;
}
function traverse ( input , strict ) { if ( strict === undefined ) strict = true ; if ( type ( input ) === 'object' ) { return traverseObject ( input , strict ) ; } else if ( type ( input ) === 'array' ) { return traverseArray ( input , strict ) ; } else if ( isodate . is ( input , strict ) ) { return isodate . parse ( input ) ; } return input ; }
Recursively traverse an object or array, and convert
all ISO date strings parse into Date objects.

@param {Object} input - object, array, or string to convert
@param {Boolean} strict - only convert strings with year, month, and date
@return {Object}
Recursively traverse an object or array and convert all ISO date strings parse into Date objects .