/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
v18.3.1
packages/shared/isArray.js
19 строк
441 B
Sebastian Markbåge
Reland Remove redundant initial of isArray (#21188)
07 апр 2021, 17:57
Не верифицирован
07 апр 2021, 17:57
172e89b
Код
Авторство
О чём код?
/** * Copyright (c) Facebook, Inc. and its 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(a: mixed): boolean %checks(Array.isArray(a)); const isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare function isArray(a: mixed): boolean { return isArrayImpl(a); } export default isArray;