Numpy Maximum Of Array And Object Destructuring In Javascript