mirror of
https://github.com/sern-handler/website
synced 2026-06-25 17:22:23 +00:00
12 lines
372 B
JavaScript
12 lines
372 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.getLength = void 0;
|
|
function getLength(segments) {
|
|
let length = 0;
|
|
for (const segment of segments) {
|
|
length += typeof segment == 'string' ? segment.length : segment[0].length;
|
|
}
|
|
return length;
|
|
}
|
|
exports.getLength = getLength;
|
|
//# sourceMappingURL=getLength.js.map
|