Created
January 17, 2018 07:13
-
-
Save meetzaveri/3d96d1255b4cbe85922ef0b0d25eeb90 to your computer and use it in GitHub Desktop.
This snippet performs the function of taking out value from key-value pair(Objects) and storing them in an array.
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
const enumarr = Object.entries(this.state); | |
const newarr = []; | |
for(let i = 0; i<=enumarr.length - 1 ;i++){ | |
newarr.push(enumarr[i][1]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment