# All files / composer/utils APIDataTransforms.js

75% Statements 3/4
50% Branches 2/4
66.67% Functions 2/3
100% Lines 3/3

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    1210x
    3x

    3x

     const extractSavedUpdatesIdsFromResponses = (responses) => (
      Array.prototype.concat.apply([],
        responses.map((response) => (
          Array.isArray(response.updates) ? response.updates.map((update) => update.id) :
          typeof response.update !== 'undefined' ? [response.update.id] :
            []
        ))
      )
    );

    export { extractSavedUpdatesIdsFromResponses };