Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (11 sloc) 380 Bytes
import isInstanceOf from "../isInstanceOf";
* Check if given value is an instance of Array.
* @param value - Value to check.
* @returns True if is an array, false if not.
export const isArray = <ValueType = unknown, ItemType = unknown>(
value: ValueType | readonly ItemType[]
): value is readonly ItemType[] => isInstanceOf(value, Array);
export default isArray;
You can’t perform that action at this time.