/
ai_sampletext
/
DiplomWork
Обзор
Документация
Войти
/
ai_sampletext
/
DiplomWork
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
node_modules/react-day-picker/src/contexts/Modifiers/utils/matcherToArray.ts
14 строк
325 B
boolyshareyo
Initial commit
08 июн 2026, 16:00
08 июн 2026, 16:00
6216a29
Код
Авторство
О чём код?
import { Matcher } from 'types/Matchers'; /** Normalize to array a matcher input. */ export function matcherToArray( matcher: Matcher | Matcher[] | undefined ): Matcher[] { if (Array.isArray(matcher)) { return [...matcher]; } else if (matcher !== undefined) { return [matcher]; } else { return []; } }