I have data that looks like this
[
[ '@test','1.2.6' ],
[ '@test2','4.0.1' ],
[ '@test3','2.2.0-unstable' ],
...
]
and I would like to retrieve all the values that have appended -unstable and list both the name @test3 and the value 2.2.0-unstable and perform actions on that
I've tried this but I'm nowhere near
axios.request(config)
.then((response) => {
const myArray = response.data.value.reduce((acc, next) => { acc.push(...next.versions.map(v => [next.normalizedName, v.normalizedVersion])); return acc }, [])
myArray.forEach(function(value){
if ((value === '-unstable')) {
// do some stuff
}
});