[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-07-29 UTC."],[],[],null,["# FirebaseArrayIndexError interface\n\nComposite type which includes both a `FirebaseError` object and an index which can be used to get the errored item.\n\n**Signature:** \n\n export interface FirebaseArrayIndexError \n\nProperties\n----------\n\n| Property | Type | Description |\n|-----------------------------------------------------------------------------------|----------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|\n| [error](./firebase-admin.firebasearrayindexerror.md#firebasearrayindexerrorerror) | [FirebaseError](./firebase-admin.firebaseerror.md#firebaseerror_interface) | The error object. |\n| [index](./firebase-admin.firebasearrayindexerror.md#firebasearrayindexerrorindex) | number | The index of the errored item within the original array passed as part of the called API method. |\n\nFirebaseArrayIndexError.error\n-----------------------------\n\nThe error object.\n\n**Signature:** \n\n error: FirebaseError;\n\nFirebaseArrayIndexError.index\n-----------------------------\n\nThe index of the errored item within the original array passed as part of the called API method.\n\n**Signature:** \n\n index: number;\n\n### Example\n\n var registrationTokens = [token1, token2, token3];\n admin.messaging().subscribeToTopic(registrationTokens, 'topic-name')\n .then(function(response) {\n if (response.failureCount \u003e 0) {\n console.log(\"Following devices unsucessfully subscribed to topic:\");\n response.errors.forEach(function(error) {\n var invalidToken = registrationTokens[error.index];\n console.log(invalidToken, error.error);\n });\n } else {\n console.log(\"All devices successfully subscribed to topic:\", response);\n }\n })\n .catch(function(error) {\n console.log(\"Error subscribing to topic:\", error);\n });"]]