3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-19 22:55:44 +01:00

Answer prose round 2: item 80 says what it names, the comment names its writer

This commit is contained in:
2026-10-05 01:04:50 +02:00
committed by Lillem4n
parent db5d6c0e46
commit 51b9272350
3 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ export function isJsonValue(value: unknown): value is JsonValue {
return true
}
// Any realm's Object.prototype has a null prototype; a Date, Map or typed array would serialize as {} or a key per element.
// Any realm's Object.prototype has a null prototype; serializeCanonicalJson writes a Date or Map as {}.
function isPlainObject(value: unknown): value is object {
if (typeof value !== 'object' || value === null) return false
const prototype: unknown = Object.getPrototypeOf(value)