QuizIntermediate
Array.isArray as Type Guard
Learn how Array.isArray narrows a union that includes an array type.
Given `value: string | string[]`, inside `if (Array.isArray(value)) { ... }`, what type is `value`?
Learn how Array.isArray narrows a union that includes an array type.
Given `value: string | string[]`, inside `if (Array.isArray(value)) { ... }`, what type is `value`?