function itemsToValue(availableItems) {
  var items = [];
  (0, _array.arrayEach)(availableItems, function (item) {
    if (item.checked) {
      items.push(item.value);
    }
  });
  return items;
}
Convert all checked items into flat array.

@param {Array} availableItems Base collection.
@returns {Array}