Schedule serverside

This commit is contained in:
tmshv committed 2017-05-26 18:41:11 +03:00
1 parent 06b3f481bd
commit fcf45614a3
11 files changed
+311 -107

No files matched your search

+14
View File
@@ -9,4 +9,18 @@ function splitBy(key) {
}
}
function head(list) {
return Array.isArray(list) && list.length
? list[0]
: null
}
function last(list) {
return Array.isArray(list) && list.length
? list[list.length - 1]
: null
}
exports.splitBy = splitBy
exports.head = head
exports.last = last