MCPcopy Create free account
hub / github.com/ember-learn/ember-api-docs / getCompactVersion

Function getCompactVersion

app/utils/get-compact-version.js:1–6  ·  view source on GitHub ↗
(fullVersion)

Source from the content-addressed store, hash-verified

1export default function getCompactVersion(fullVersion) {
2 if (fullVersion.includes('-')) {
3 return fullVersion;
4 }
5 return fullVersion.split('.').slice(0, 2).join('.');
6}

Callers 7

projectVersionsMethod · 0.85
findEndingRouteFunction · 0.85
getFullVersionFunction · 0.85
getFullVersionMethod · 0.85
compactVersionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected