| Total Complexity | 5 |
| Complexity/F | 1.67 |
| Lines of Code | 32 |
| Function Count | 3 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | (function (global, factory) { |
||
| 2 | typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : |
||
| 3 | typeof define === 'function' && define.amd ? define(factory) : |
||
| 4 | (global = global || self, (global.FullCalendarLocales = global.FullCalendarLocales || {}, global.FullCalendarLocales.uk = factory())); |
||
| 5 | }(this, function () { 'use strict'; |
||
| 6 | |||
| 7 | var uk = { |
||
| 8 | code: "uk", |
||
| 9 | week: { |
||
| 10 | dow: 1, |
||
| 11 | doy: 7 // The week that contains Jan 1st is the first week of the year. |
||
| 12 | }, |
||
| 13 | buttonText: { |
||
| 14 | prev: "Попередній", |
||
| 15 | next: "далі", |
||
| 16 | today: "Сьогодні", |
||
| 17 | month: "Місяць", |
||
| 18 | week: "Тиждень", |
||
| 19 | day: "День", |
||
| 20 | list: "Порядок денний" |
||
| 21 | }, |
||
| 22 | weekLabel: "Тиж", |
||
| 23 | allDayText: "Увесь день", |
||
| 24 | eventLimitText: function (n) { |
||
| 25 | return "+ще " + n + "..."; |
||
| 26 | }, |
||
| 27 | noEventsMessage: "Немає подій для відображення" |
||
| 28 | }; |
||
| 29 | |||
| 30 | return uk; |
||
| 31 | |||
| 32 | })); |
||
| 33 |
The sequence or comma operator allows the inclusion of multiple expressions where only is permitted. The result of the sequence is the value of the last expression.
This operator is most often used in
forstatements.Used in another places it can make code hard to read, especially when people do not realize it even exists as a seperate operator.
This check looks for usage of the sequence operator in locations where it is not necessary and could be replaced by a series of expressions or statements.
could just as well be written as:
To learn more about the sequence operator, please refer to the MDN.