function getArrVal(arrObj, key, condition) { if (!arrObj instanceof Array) { return null; } for (var i = 0;i