IsTruthy could be incorrect for certain implementations of the interface such as JToken which implements IEnumerable and can have a value but not contain child elements which would cause IEnumerable to be falsey.
It may be worth adding a registry to this so you can override or add to this much like the other planned extensions.
IsTruthy
could be incorrect for certain implementations of the interface such asJToken
which implementsIEnumerable
and can have a value but not contain child elements which would causeIEnumerable
to be falsey.It may be worth adding a registry to this so you can override or add to this much like the other planned extensions.