Skip to content

isPositionInsideSome

Checks if a position is fully contained within any of the given containers.

Each container is a position, or anything that carries one (a reference cache, a heading, a section). The containment test is isPositionInside.

Import:

import { isPositionInsideSome } from '@mnaoumov/obsidian-lib/position';

Signature:

function isPositionInsideSome(inner: Pos, containers: readonly PositionContainer[]): boolean

Parameters:

Parameter Type Description
inner Pos The position to check.
containers readonly PositionContainer[] The positions, or things carrying positions, to check against.

Returns: boolean — Whether the inner position is fully contained within at least one container.