UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

65 lines (34 loc) 1.18 kB
--- lang: en title: 'API docs: context.includestagvalue' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/context permalink: /doc/en/lb4/apidocs.context.includestagvalue.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/context](./context.md) &gt; [includesTagValue](./context.includestagvalue.md) ## includesTagValue() function Create a tag value matcher function that returns `true` if the target tag value equals to the item value or is an array that includes the item value. **Signature:** ```typescript export declare function includesTagValue(...itemValues: unknown[]): TagValueMatcher; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td markdown="1"> itemValues </td><td markdown="1"> unknown\[\] </td><td markdown="1"> A list of tag item value </td></tr> </tbody></table> **Returns:** [TagValueMatcher](./context.tagvaluematcher.md)