Skip to content

Doc.indexFromPos method

Doc › indexFromPos

Unofficial

The reverse of posFromIndex.

Signature:

indexFromPos(object: Position): number

Parameters:

Parameter Type Description
object Position The position.

Returns: numberThe zero-based index.