code: function _createOptionArrayFromOptionCollection(product, collection) {
    _validateProductStructure(product);
    _validateSerializedArray(collection);
  
    var optionArray = [];
  
    collection.forEach(function(option) {
      for (var i = 0; i < product.options.length; i++) {
        if (product.options[i].name.toLowerCase() === option.name.toLowerCase()) {
          optionArray[i] = option.value;
          break;
        }
      }
    });
  
    return optionArray;
  }
docs: Creates an array of selected options from the object
  Loops through the project.options and check if the "option name" exist (product.options.name) and matches the target
  @param {Object} product Product JSON object
  @param {Array} collection Array of object (e.g. [{ name: "Size", value: "36" }, { name: "Color", value: "Black" }])
  @returns {Array} The result of the matched values. (e.g. ['36', 'Black'])