Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
export
default
function
getCompactVersion(fullVersion) {
2
if
(fullVersion.includes(
'-'
)) {
3
return
fullVersion;
4
}
5
return
fullVersion.split(
'.'
).slice(0, 2).join(
'.'
);
6
}
Callers
7
projectVersions
Method · 0.85
findEndingRoute
Function · 0.85
isCrossingVersionBoundary
Function · 0.85
getFullVersion
Function · 0.85
getFullVersion
Method · 0.85
compactVersion
Method · 0.85
get-compact-version-test.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected