From 5941c3d1a52506cf83bdbaf1a4daea6d42e5cfcc Mon Sep 17 00:00:00 2001 From: Christopher Kolstad Date: Wed, 24 Feb 2021 10:53:06 +0100 Subject: [PATCH] Update docs/sdks/node.md --- docs/sdks/node.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sdks/node.md b/docs/sdks/node.md index 1a2b2bf9b5..45dd8be269 100644 --- a/docs/sdks/node.md +++ b/docs/sdks/node.md @@ -48,7 +48,7 @@ Please also pay attention to the “environment” option. Setting this will all Now that we have initialized the client SDK in our application we can start using feature toggles defined in Unleash in our application. To achieve this we have the “isEnabled” method available, which will allow us to check the value of a feature toggle. This method will return **true** or **false** based on whether the feature should be enabled or disabled for the current request. -```sh +```js setInterval(() => { if(unleash.isEnabled('DemoToggle')) { console.log('Toggle enabled');