I know that in git it is possible to remove local branches as follows:
git branch -d "nombreRama"
The question is Is there a command that can remove local branches that have already been merged with master?
I know that in git it is possible to remove local branches as follows:
git branch -d "nombreRama"
The question is Is there a command that can remove local branches that have already been merged with master?
Well first of all I want to comment that I have a data structure as follows:
arrayJson = [{"point":[5,4]},{"point":[2,2]},{"point":[1,6]},
{"point": [8,9]} ]
The objective is to find the index within the array that meets a condition and that is that "point" is equal to a certain value, I have tried to do it in the following way:
function encontrarElemento(element) {
return element.point == [5,4];
}
console.log(array1.findIndex(encontrarElemento));
I don't know why, but the console output tells me it's -1, which means it's not finding the element.