This could be simplified to

```js
return chi_squared_distribution_table[degrees_of_freedom][significance] < chi_squared;
```

Or as an if/else with `return` statements directly, rather than assigning to a var in the middle.