collectype

collectype v0.11.0


collectype / utils/pipe/pipeFunctions / isReserved

Function: isReserved()

isReserved(methodName): methodName is ReservedMethods

Defined in: utils/pipe/pipeFunctions.ts:15

Returns true if the given method name is reserved and cannot be used in pipe expressions.

Parameters

methodName

ReservedMethods

The method name to check

Returns

methodName is ReservedMethods

True if the method is reserved, false otherwise

Example

isReserved('map'); // true
isReserved('customMethod'); // false