From 09fb65381227959ebef1053cea5b6c4584983ad0 Mon Sep 17 00:00:00 2001 From: "D. Berge" Date: Wed, 8 Nov 2023 20:59:58 +0100 Subject: [PATCH] Strip whitespace --- lib/www/client/source/src/lib/utils.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/www/client/source/src/lib/utils.js b/lib/www/client/source/src/lib/utils.js index 6a3ade8..3b55302 100644 --- a/lib/www/client/source/src/lib/utils.js +++ b/lib/www/client/source/src/lib/utils.js @@ -93,25 +93,25 @@ function geometryAsString (item, opts = {}) { } /** Extract preferences by prefix. - * + * * This function returns a lambda which, given * a key or a prefix, extracts the relevant * preferences from the designated preferences * store. - * + * * For instance, assume preferences = { * "a.b.c.d": 1, * "a.b.e.f": 2, * "g.h": 3 * } - * + * * And λ = preferencesλ(preferences). Then: - * + * * λ("a.b") → { "a.b.c.d": 1, "a.b.e.f": 2 } * λ("a.b.e.f") → { "a.b.e.f": 2 } * λ("g.x", {"g.x.": 99}) → { "g.x.": 99 } * λ("a.c", {"g.x.": 99}) → { "g.x.": 99 } - * + * * Note from the last two examples that a default value * may be provided and will be returned if a key does * not exist or is not searched for.