@robert.tools/eleventy-filter-contains
v1.0.0
Published
A filter that checks if a value contains in another object
Maintainers
Readme
🗂️ @robert.tools/eleventy-filter-contains
Helper to safely check if a value is contained within another value.
📜 Usage
🟢 Installation
npm install @robert.tools/eleventy-filter-contains📝 Sample usage
import contains from '@robert.tools/eleventy-filter-contains';
contains('hello', 'he'); // true📜 Usage
{{ value | contains(search) }} {# true or false #}⚖️ Notes
This software is hand-crafted, test-driven and assisted by AI tools. I know each line of my code. ✌️
| Tool | Comment | | ------------- | ------------- | | | Test-driven development with Jest | | | Part of the robert.tools ecosystem | | | Code completion | | | chatGPT research |
