/
ashipov
/
react
Обзор
Документация
Войти
/
ashipov
/
react
Код
Запросы
0
Задачи 2.0
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
packages/shared/isArray.js
21 строка
451 B
Jan Kassens
Update Flow to 0.248 (#34248)
21 авг 2025, 18:15
Не верифицирован
21 авг 2025, 18:15
873f711
Код
Авторство
О чём код?
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ declare function isArray<T>( v: T, // eslint-disable-next-line ): v is T extends $ReadOnlyArray<mixed> ? T : empty; const isArrayImpl = Array.isArray; function isArray(a: mixed): boolean { return isArrayImpl(a); } export default isArray;