Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

getLineId

import { getLineId } from "https://raw.githubusercontent.com/takker99/scrapbox-userscript-std/0.14.1/browser/dom/mod.ts";

Get the line id from value

If the line id can't be found, return undefined

function getLineId<T extends HTMLElement>(value?: number | string | T): string | undefined;
§
getLineId<T extends HTMLElement>(value?: number | string | T): string | undefined
[src]

§Type Parameters

§
T extends HTMLElement
[src]

§Parameters

§
value?: number | string | T optional
[src]
  • value the line id of which you want to get

§Return Type

§
string | undefined
[src]