MCPcopy 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
73function getYear(str) {
74 return str.slice(0, 4);
75}
76
77exports.git = git;
78exports.getYears = getYears;

Callers 1

getYearsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected