code: function pickArray(indices, array) {
    return filter((ignored, index) => ~indices.indexOf(index), array);
  }
docs: @function pickArray
  
  @description
  pick the values from the given array based on the existence of the indices
  
  @param {Array<number>} indices the indices to match
  @param {Array<*>} array the array to pick from
  @returns {Array<*>} the array with the picked values