First we will iterate array elements using map and then we apply Lodash Library Standard _.pick() method on it. Fiddle... Let suppose on button click you are calling ajax method