I have this array obejcts
var customers =
[{"id":"1", "name":"John","position":"CEO","office":"NY", "active": "1"},
{"id":"2", "name":"Michael","position":"CEO","office":"NY", "active": "1"},
{"id":"3", "name":"Wanda","position":"CEO","office":"NY", "active": "0"},
{"id":"3", "name":"Novak","position":"CEO","office":"NY", "active": "0"}];
What i need is to get number of customers in that array,
var indexID = 4;
And also a new array that will look like this
var newArray =
[{"id", "name","position","office"}];
This new array will only collect title just once and with out active