( str?: string | null )
| 7 | * @returns The action prefix. |
| 8 | */ |
| 9 | export const getActionPrefix = ( |
| 10 | str?: string | null |
| 11 | ): IterableCustomActionPrefix | null => { |
| 12 | if (!str) return null; |
| 13 | if (str.startsWith(IterableCustomActionPrefix.Action)) { |
| 14 | return IterableCustomActionPrefix.Action; |
| 15 | } |
| 16 | if (str.startsWith(IterableCustomActionPrefix.Itbl)) { |
| 17 | return IterableCustomActionPrefix.Itbl; |
| 18 | } |
| 19 | return null; |
| 20 | }; |
no outgoing calls
no test coverage detected
searching dependent graphs…