Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/loopbackio/loopback-next
/ getYear
Function
getYear
packages/cli/generators/copyright/git.js:73–75 ·
view source on GitHub ↗
(str)
Source
from the content-addressed store, hash-verified
71
72
// assumes ISO-8601 (or similar) format
73
function
getYear(str) {
74
return
str.slice(0, 4);
75
}
76
77
exports.git = git;
78
exports.getYears = getYears;
Callers
1
getYears
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected