mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
This update remove support for `%checks`. Thanks @SamChou19815 for finding a close replacement that works.
22 lines
451 B
JavaScript
22 lines
451 B
JavaScript
/**
|
|
* 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;
|