index.js
function hasPath(target, path) {
  path = pathToArray(path);

  const result = breadcrumbs(target, path);

  return result.length === path.length + 1;
}
function hasPath(target, path) {
  path = pathToArray(path);

  const result = breadcrumbs(target, path);

  return result.length === path.length + 1;
}
function hasPath ( target , path ) { path = pathToArray ( path ) ; const result = breadcrumbs ( target , path ) ; return result . length === path . length + 1 ; }
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`.
hasPath - Set deeply nested value into target object . If nested properties are not an objects or not exists creates them .