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:
parent
8039b30ac4
commit
5941c3d1a5
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user