title: How to call debounce correctly? lodash
body: <p>I am currently working on a reactNative project and I am having a bit of trouble using the <code>_.debounce</code> method of lodash. This is my current code:</p>
  
  <pre><code>class GooglePlacesAutocompleteModal extends Component {
  
    constructor(props) {
      super(props);
      this.getPredictions = this.getPredictions.bind(this);
    }
  
    getPredictions(input) {
      function getAutocompletePredictions(input) {
        RNGooglePlaces.getAutocompletePredictions(input)
        .then(results =&gt; {
          console.log('Autocomplete results: ', results);
          this.setState({ predictions: results })
        })
        .catch(error =&gt; console.log(error.message))
      }
  
      _.debounce(getAutocompletePredictions, 300);
    }
  
    render() {
      return (
        &lt;TextInput
          style={inputStyle}
          autoCorrect={false}
          maxLength={40}
          autoCapitalize={'words'}
          onChangeText={this.getPredictions}
        /&gt;
      )
    }
  }
  </code></pre>
  
  <p>I dont see why debounce is not working since I followed the documentation and even understand the function itself. Any help is welcome! </p>