mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-02 12:03:49 -05:00
10 lines
179 B
JavaScript
10 lines
179 B
JavaScript
function commentToData(file, comment) {
|
|
if (file.data[comment]) {
|
|
file.data[comment]++;
|
|
} else {
|
|
file.data[comment] = 1;
|
|
}
|
|
}
|
|
|
|
exports.commentToData = commentToData;
|