From 35b914a82cf032db71275d85acdd4348b4a6cb66 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 19 May 2026 16:14:20 -0300 Subject: yaml: flipBoolean --- src/data/yaml.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/data/yaml.js') diff --git a/src/data/yaml.js b/src/data/yaml.js index 60017b3d..cce2bbf0 100644 --- a/src/data/yaml.js +++ b/src/data/yaml.js @@ -621,6 +621,14 @@ export class SubdocAggregateError extends AggregateError { } } +export function flipBoolean(value) { + if (typeof value === 'boolean') { + return !value; + } else { + return value; + } +} + export function parseDate(date) { return new Date(date); } -- cgit 1.3.0-6-gf8a5