createExpectedPropertiesOrder.js 200 B

1234567891011
  1. module.exports = function createExpectedPropertiesOrder(input) {
  2. const order = {};
  3. input.forEach((property, propertyIndex) => {
  4. order[property] = {
  5. propertyIndex,
  6. };
  7. });
  8. return order;
  9. };