mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Do Radians right
This commit is contained in:
+2
-1
@@ -62,7 +62,8 @@ class Util {
|
||||
}
|
||||
|
||||
static list(arr, conj = 'and') {
|
||||
return `${arr.slice(0, -1).join(', ')}${arr.length > 1 ? `${arr.length > 2 ? ',' : ''} ${conj} ` : ''}${arr.slice(-1)}`; // eslint-disable-line max-len
|
||||
const { length } = arr;
|
||||
return `${arr.slice(0, -1).join(', ')}${length > 1 ? `${length > 2 ? ',' : ''} ${conj} ` : ''}${arr.slice(-1)}`;
|
||||
}
|
||||
|
||||
static shorten(text, maxLen = 2000) {
|
||||
|
||||
Reference in New Issue
Block a user