Skip to content

extractObjectPaths ​

Overview ​

Extracts object paths (those ending with a specific suffix, like .detail).

Signature ​

extractObjectPaths(paths, suffix)

Parameters ​

NameTypeRequiredDescription
pathsstring[]yesPaths to process.
suffixstringyesThe suffix to look for.

Returns ​

string[]

Array of object paths.

Source ​

client/lib/utils/errors.js:233