{"version":3,"file":"_jsonStringifyTail.mjs","names":[],"sources":["../../src/internal/_jsonStringifyTail.ts"],"sourcesContent":["/**\n * Remove one trailing comma from a stringified body.\n *\n * @evidence contracts/common.md#principled-implementation A trailing comma left by the emitted concatenation is removed, and any other ending is left alone, so the object or array body ends without a dangling comma.\n * @evidence contracts/common.md#clear-and-simple-design One expression.\n * @evidence contracts/common.md#prohibited-implementation-shortcuts It only removes one comma character.\n * @evidence contracts/common.md#meaningful-documentation A comment states the single trailing comma rule.\n */\nexport const _jsonStringifyTail = (str: string): string =>\n  str[str.length - 1] === \",\" ? str.substring(0, str.length - 1) : str;\n"],"mappings":";;;;;;;;;AAQA,MAAa,sBAAsB,QACjC,IAAI,IAAI,SAAS,OAAO,MAAM,IAAI,UAAU,GAAG,IAAI,SAAS,CAAC,IAAI"}