I want to find how many numbers are greater than 0.
let tempObj = [
{"id":1,"servPrice":0,"bedPrice":0},
{"id":2,"servPrice":3,"bedPrice":5},
{"id":3,"servPrice":9,"bedPrice":0}
]
If I write array as method parameter and which prop I want to learn, I guess it will work. For example : servPrice = 2, bedPrice = 1