encodeSegment
function encodeSegment(segment): string;Defined in: src/storage/keys.ts:18
Escape a free-form key segment: encodeURIComponent, plus ~ → %7E (~ is the separator of
sortableLeaf).
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
segment |
string |
Returns
Section titled “Returns”string