MCPcopy Create free account
hub / github.com/DavidWells/analytics / getPlatforms

Function getPlatforms

scripts/docs.js:395–399  ·  view source on GitHub ↗
(allData)

Source from the content-addressed store, hash-verified

393}
394
395function getPlatforms(allData) {
396 return allData.map((d) => {
397 return capitalizeFirstLetter(getPlatformName(d))
398 })
399}
400
401function getPlatformName(data) {
402 return (data.platform === 'node') ? 'node.js' : data.platform

Callers 1

mainUsageBlockFunction · 0.85

Calls 2

capitalizeFirstLetterFunction · 0.85
getPlatformNameFunction · 0.85

Tested by

no test coverage detected