Skip to main content

arrayRemoveItem

Removes provided element from an array.

Parameters

  • array array of strings to remove element from
  • toRemove string to remove from the array

Examples

arrayRemoveItem(['The', 'quick', 'brown'], 'The');
// => ['quick', 'brown']

Returns array of strings without the removed element.

Meta

  • version: 4.0.8