Created
November 5, 2017 22:35
-
-
Save antonioiksi/68932235eec6478d41b569a7b2b2fd89 to your computer and use it in GitHub Desktop.
clone array is easy: arr.slice(0)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.setState({ | |
result: this.state.query.slice(0), | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment