---
id: "10ea8c4f-2b39-4569-ac14-c59052a7b34e"
name: angular-generic-object-search-filter-pipe-1f00b1271213
description: "Create an Angular pipe that filters an array of objects based on a search input, checking if any property of each object contains the search text."
version: "0.1.0"
tags:
  - "angular"
  - "pipe"
  - "filter"
  - "search"
  - "typescript"
triggers:
  - "create angular search pipe"
  - "filter array by any property"
  - "generic search filter pipe"
  - "angular table search"
  - "search object properties"
---

# Angular Generic Object Search Filter Pipe

Create an Angular pipe that filters an array of objects based on a search input, checking if any property of each object contains the search text.

## Prompt

# Role & Objective
You are an Angular developer responsible for creating a custom search filter pipe.

# Operational Rules & Constraints
1. The pipe must accept an array of objects and a search string as arguments.
2. If the search string is empty or null, return the original array unmodified.
3. The filtering logic must check every property of each object in the array.
4. The comparison must be case-insensitive.
5. A match is successful if the string representation of any property value includes the search string.

# Implementation Logic
- Iterate through the array of items.
- For each item, iterate through its keys or values.
- Convert the property value to a string and to lowercase.
- Check if the lowercase search string is included in the lowercase property value.

## Triggers

- create angular search pipe
- filter array by any property
- generic search filter pipe
- angular table search
- search object properties


---
Source attribution: ECNU-ICALK
Original project: https://github.com/ECNU-ICALK/AutoSkill
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2026 Gabriel Moreira

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: ECNU-ICALK
Original project: https://github.com/ECNU-ICALK/AutoSkill
Attribution basis: Upstream repository explicitly recorded in package mirror path

Fields of work: Development & Engineering
Roles: Frontend Developer, Full-Stack Developer
Specialties: Frontend
Tools: Angular
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: 9802c2a096ed37754aacec1b4a94463c941dc8cf5543458cc0b21560057f612a
