at
export const at = (text: string, needle: string, delta = 0) => { const offset = text.indexOf(needle) + delta; const before = text.slice(0, offset).split("\n"); return { line: before.length - 1, character: before.at(-1)!.length }; }
export const at = (text: string, needle: string, delta = 0) => { const offset = text.indexOf(needle) + delta; const before = text.slice(0, offset).split("\n"); return { line: before.length - 1, character: before.at(-1)!.length }; }