Skip to main content
Module

x/apiland/docs.ts>descendentNotChild

The API server for deno.land
Latest
function descendentNotChild
import { descendentNotChild } from "https://deno.land/x/apiland@1.7.2/docs.ts";

If the descendent isn't a direct child of the parent, the Key of the parent is returned. If the descendent is a direct child of the parent, undefined is returned. If the provided key is not a descendent of the parent, the function throws.

Parameters

parent: Key
descendent: Key

Returns

Key | undefined