From b66b10df497552d2da59d6e0260eec8ec2adbbbf Mon Sep 17 00:00:00 2001 From: Laila Los <44241786+ElectronicBlueberry@users.noreply.github.com> Date: Thu, 8 Dec 2022 16:45:31 +0100 Subject: [PATCH] add additional example for strict equality --- client/docs/styleguide.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/docs/styleguide.md b/client/docs/styleguide.md index dbc91c8f584..d260180b62b 100644 --- a/client/docs/styleguide.md +++ b/client/docs/styleguide.md @@ -384,6 +384,10 @@ When possible, use strict equality. > if (value === 5) { > // do stuff... > } +> +> if (otherValue !== 6) { +> // do more stuff... +> } > ``` > > **Don't** @@ -392,6 +396,10 @@ When possible, use strict equality. > if (value == 5) { > // do stuff... > } +> +> if (otherValue != 6) { +> // do more stuff... +> } > ``` > **Reason**