title: How do I delete words that start with the keyword in the object value? javascript
body: <p>I have an array like this. I want to delete <code>row-?</code> words in <code>className</code> property.</p>
  <pre><code>[
    {
      type: &quot;text&quot;,
      name: &quot;text-1632646960432-0&quot;,
      satir: &quot;1&quot;,
      className: &quot;form-control col-lg-3 row-1&quot;
    },
    {
      type: &quot;text&quot;,
      name: &quot;text-1632646974512-0&quot;,
      satir: &quot;1&quot;,
      className: &quot;form-control col-lg-6 row-8&quot;
    }
  ]
  </code></pre>
  <p>I want a result like this.</p>
  <pre><code>[
    {
      type: &quot;text&quot;,
      name: &quot;text-1632646960432-0&quot;,
      satir: &quot;1&quot;,
      className: &quot;form-control col-lg-3&quot;
    },
    {
      type: &quot;text&quot;,
      name: &quot;text-1632646974512-0&quot;,
      satir: &quot;1&quot;,
      className: &quot;form-control col-lg-6&quot;
    }
  ]
  </code></pre>
  <p>How can I do that ? Also how can I trim so that there is no space at the end?</p>