title: How to? Creating Redux selectors with arguments
body: <p>I have a state with a map array of some data.
  I need to select one object from it.
  I can get the whole array using</p>
  
  <pre><code>function mapStateToProps (state) {
    return {
      allDataSet: state.data
    }
  }
  </code></pre>
  
  <p>and then select the entity needed placing logic in the component. Like this:</p>
  
  <pre><code>(id) =&gt; this.props.allDataSet.filter((entity) =&gt; entity.id === id)
  </code></pre>
  
  <p>But somehow I believe that doing this is wrong and against all of the best practices, as all selectors logic should be separated from the component. 
  <br>Exactly this case is simple, but i real project I had to place complex selectors inside my component just to get data by Id...
  Is there any patterns or best practices that provides solution for this?</p>