# filterInPlace

`Util.``filterInPlace`()
  filterInPlace(xs: T[], pred: (x: T) => boolean): void

  This function takes an array of type <T>, and a predicate function to test each element of the array. This function does not create a new array.

  Parameters

  > xs: T[]

  > > Array to filter.

  > pred: (x: T) => boolean

  > > If this function returns true when testing an item, the item will be kept in the array, otherwise the item will be removed.

  Returns: void

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your Docs generative AI assistant. Ask me anything about HOOPS Visualize Web or choose a sample question below to start a conversation:

What is HOOPS Visualize Web?
What are the latest release notes for HOOPS Visualize Web?
How do I start evaluating HOOPS Visualize Web?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...