Skip to main content

processEntryToArray() function

This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Processes an entry or an array of entries into an array of entries. If a startWithEntry param is provided, it is set as the first item in the result array.

Signature:

export declare function processEntryToArray(
inputEntryOrArray?: string | string[] | any,
startWithEntry?: string,
): string[]

Parameters

ParameterTypeDescription
inputEntryOrArraystring | string[] | any(Optional) The input that needs to be transformed to an array.
startWithEntrystring

(Optional) If this is provided, this element will be the first in the resulting array.

This API may change without a BREAKING CHANGE notice.

Returns:

string[]