index.js
function _getRule (neighbourhood) {
    var currentState = null
    var currentRule = [...rule]
    neighbourhoods.forEach(function (hood, index) {
      if (hood === neighbourhood) {
        currentState = currentRule[index]
      }
    })

    return currentState
  }
function _getRule (neighbourhood) {
    var currentState = null
    var currentRule = [...rule]
    neighbourhoods.forEach(function (hood, index) {
      if (hood === neighbourhood) {
        currentState = currentRule[index]
      }
    })

    return currentState
  }
function _getRule ( neighbourhood ) { var currentState = null var currentRule = [ ... rule ] neighbourhoods . forEach ( function ( hood , index ) { if ( hood === neighbourhood ) { currentState = currentRule [ index ] } } ) return currentState }
let's see which rule we are currently looking at
let s see which rule we are currently looking at