| Total Complexity | 2 |
| Complexity/F | 2 |
| Lines of Code | 12 |
| Function Count | 1 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import { FrameOptions, FRAME_OPTIONS } from './definitions/FrameOptions' |
||
| 2 | import { isKeyOf } from './util' |
||
| 3 | |||
| 4 | export function getFrameOptions(frameIdentifier: string): FrameOptions { |
||
| 5 | if (isKeyOf(frameIdentifier, FRAME_OPTIONS)) { |
||
| 6 | return FRAME_OPTIONS[frameIdentifier] |
||
| 7 | } |
||
| 8 | return { |
||
| 9 | multiple: false |
||
| 10 | } |
||
| 11 | } |
||
| 12 |