( readOnlyArray: ReadonlyArray<T>, maybeMember: T | string, )
| 271 | * @returns whether the array contains the member or not |
| 272 | */ |
| 273 | export const readOnlyArrayHasStringMember = <T extends string>( |
| 274 | readOnlyArray: ReadonlyArray<T>, |
| 275 | maybeMember: T | string, |
| 276 | ): maybeMember is T => readOnlyArray.includes(maybeMember as (typeof readOnlyArray)[number]); |
no outgoing calls
no test coverage detected