title: How to remove value from array using index (Ant Design specific)?
body: <p>I am creating a questionnaire type form using ReactJs and Ant Design. It is a follow up question of <a href="https://stackoverflow.com/questions/51782379/how-to-create-a-questionnaire-type-form-using-ant-design">How to create a questionnaire type form using Ant Design?</a></p>
  
  <p>Now I am succeeded in adding new questions and their respective answers but not in removing them. Let's suppose I have added three questions and when I am trying to remove any one of them, its always removing the last one. The related code for removing is as follows:</p>
  
  <pre><code>remove = k =&gt; {
      console.log(k);
      const { form } = this.props;
      // can use data-binding to get
      const keys = form.getFieldValue("keys");
      // We need at least one passenger
      if (keys.length === 1) {
        return;
      }
      keys.splice(k, 1);
      // can use data-binding to set
      form.setFieldsValue({
        keys: keys
      });
      console.log(keys);
    };
  </code></pre>
  
  <p>The complete code can be found as a <a href="https://codesandbox.io/s/o774v6q845" rel="nofollow noreferrer">demo on codesandbox.io</a>.</p>