return !!(// double negation is required since logical operators dont always return Booleans
ENV_VAR ||
SomeLongStore.get('key') ||
SomeConfig.get('layer', 'sub-layer') === 'required-value' ||
this.anotherLongCondition()
)
vs
return [
ENV_VAR,
SomeLongStore.get('key'),
SomeConfig.get('layer', 'sub-layer') === 'required-value',
this.anotherLongCondition()
].some(Boolean)