skip to Main Content

“How can I iterate through an array of arrays & return only a few elements based on React state?”

I have an array that contains other arrays: export const ArtifactArray = [ AccessoriesArtifacts, BodyArtifacts, CloakArtifacts, FeetArtifacts, HandsArtifacts, HeadArtifacts, LeftHandArtifacts, MainHandArtifacts, NeckArtifacts ] Each of these arrays contain objects: export const BodyArtifacts = [ WonderArmor, BrimstoneBreastplate, PetrifiedWoodBreastplate, DragonScaleArmor, RibCage, GreatBasilistScales,…

VIEW QUESTION
Back To Top
Search