Hey I have the following array :
var ar = [{id: "F"}, {id: "G"}, {id: "Z"}, {id: "ZZ"}]
I would like to move the one with the id equals to ZZ
to the first position in the array.
I know how to do it using several different functions, but I was wondering if there was an elegant solution to do it (lodash, ...)