Sha256: 64df6c9a46a506751ec4452eb0ffc0f03a1e0d3957987673fb4a132d6607635a
Contents?: true
Size: 306 Bytes
Versions: 10
Compression:
Stored size: 306 Bytes
Contents
function calculateServiceUsage(hostServiceId, services) { const service = services.find(serv => serv['id'] == hostServiceId); if ('currentCount' in service) { service['currentCount'] += 1; } else { service['currentCount'] = 1; } return services; } export { calculateServiceUsage, };
Version data entries
10 entries across 10 versions & 1 rubygems