mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01: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. 
 | 
			
		||||
 | 
			
		||||
```sh
 | 
			
		||||
```js
 | 
			
		||||
setInterval(() => {
 | 
			
		||||
    if(unleash.isEnabled('DemoToggle')) {
 | 
			
		||||
      console.log('Toggle enabled');
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user