Hey GrowthBook team! I have a question about the e...
# ask-questions
g
Hey GrowthBook team! I have a question about the evalFeature method on the JS SDK: https://github.com/growthbook/growthbook/tree/main/packages/sdk-js#evalfeature • Not mentioned in the docs but it seems to return an
on
and an
off
property with a boolean value. What is the condition when
on
is returned as true?
s
It returns the value of the feature. If the feature is truthy, for example,
on
is
true
and
off
is
false
.
g
Got it! Thank you!