Skip to content

Commit f624656

Browse files
committed
add standard comments and var values
1 parent 57e10df commit f624656

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

index.ts

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
import * as LaunchDarkly from 'launchdarkly-node-server-sdk';
22

3-
// TODO : Enter your LaunchDarkly SDK key here
4-
const client = LaunchDarkly.init("YOUR_SDK_KEY");
3+
// Set sdkKey to your LaunchDarkly SDK key.
4+
const sdkKey = "";
55

6+
// Set featureFlagKey to the feature flag key you want to evaluate.
7+
const featureFlagKey = "my-boolean-flag";
8+
9+
const client = LaunchDarkly.init(sdkKey);
10+
11+
// Set up the user properties. This use should appear on your LaunchDarkly
12+
// users dashboard soon after you run the demo.
613
const user = {
7-
"firstName":"Bob",
8-
"lastName":"Loblaw",
9-
"key":"louise@example.com",
10-
"custom":{
11-
"groups":"beta_testers"
12-
}
14+
"name": "Sandy",
15+
"key": "example-user-key"
1316
};
1417

1518
client.once('ready', function() {

0 commit comments

Comments
 (0)