code: function hasPath(target, path) {
    path = pathToArray(path);
  
    const result = breadcrumbs(target, path);
  
    return result.length === path.length + 1;
  }
docs: hasPath - Set deeply nested value into target object. If nested properties
  are not an objects or not exists creates them.
  
  @param {Object} target Parent object.
  @param {Path} path   Array of path segments.
  @return {Boolean} Returns true if object contains `path`.