function updateWrapDetails(details, bitmask) {
      arrayEach(wrapFlags, function(pair) {
        var value = '_.' + pair[0];
        if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {
          details.push(value);
        }
      });
      return details.sort();
    }
Updates wrapper `details` based on `bitmask` flags.

@private
@returns {Array} details The details to modify.
@param {number} bitmask The bitmask flags. See `createWrap` for more details.
@returns {Array} Returns `details`.