1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-15 17:50:48 +02:00

Update docs/sdks/node.md

This commit is contained in:
Christopher Kolstad 2021-02-24 10:53:06 +01:00 committed by GitHub
parent 8039b30ac4
commit 5941c3d1a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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. 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(() => { setInterval(() => {
if(unleash.isEnabled('DemoToggle')) { if(unleash.isEnabled('DemoToggle')) {
console.log('Toggle enabled'); console.log('Toggle enabled');