Page Contents

Home > @loopback/repository-json-schema > isArrayType

isArrayType() function

Determines whether a given string or constructor is array type or not

Signature:

export declare function isArrayType(type: string | Function | PropertyType): boolean;

Parameters

Parameter Type Description

type

string | Function | PropertyType

Type as string or wrapper

Returns:

boolean