“react-native array.filter por función de flecha de índice” Código de respuesta

react-native array.filter por función de flecha de índice

//
// in react-native, removing an item from an array. SelectedStoryPhotos is the array name, remember item is the array item, index is it's position in the arry, picture
// index is the index of the array item you want removed passed in.
// 
	this.setState(state => {
		const selectedStoryPhotos = state.selectedStoryPhotos.filter((item, index) => pictureindex !== index);
		return {selectedStoryPhotos,
		};
	});
Anorak

filtro () matriz de objetos en el cambio react

const handleChange = (e) => {
      const id = hospitalsDetails.filter(obj => obj.hospitalName == e.target.value)
      setCurrentApp({ ...currentApp, [e.target.id]: e.target.value, ["hospitalID"]: id.hospitalID })  
}
Volcano

Respuestas similares a “react-native array.filter por función de flecha de índice”

Preguntas similares a “react-native array.filter por función de flecha de índice”

Más respuestas relacionadas con “react-native array.filter por función de flecha de índice” en JavaScript

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código