I need help to make a function to search using vanilla or for example lodash to loop an a array of objects and get the highest occurrence object in the array, this is my object:
[{"s":97,"p":75},{"s":99,"p":93},{"s":97,"p":75},{"s":97,"p":76},{"s":97,"p":75},{"s":97,"p":75},{"s":97,"p":74},{"s":86,"p":80},{"s":97,"p":73},{"s":97,"p":71},{"s":97,"p":71}]
the result should be:
{"s":97,"p":75}
thanks in advance