count-object-value
v2.0.0
Published
Count the occurance of value in (key,value) object as per key
Downloads
4
Readme
Get Count of Unique Value in Object Format from Array Of Object.
let say your Array Of Object is
let obj = [
{"name":"abc","value":"6E"},
{"name":"abc2","value":"6E"},
{"name":"abc","value":"10E"},
{"name":"abc2","value":"10E"},
{"name":"abc","value":"10E"},
{"name":"abc2","value":"12E"}
]
Then Output Will be :
Object {10E: 3, 12E: 1, 6E: 2}