API script for communicating with the GUI frontend
This commit is contained in:
1 parent
ca70f40201
commit
1606d4428c
3 files changed
+91
-6
No files matched your search
@@ -0,0 +1,8 @@
|
||||
exports.endsWith = (str, suffix) ->
|
||||
str.indexOf(suffix, str.length - suffix.length) isnt -1
|
||||
|
||||
exports.arrayToHash = (arr) ->
|
||||
hash = {}
|
||||
for i in arr
|
||||
hash[i[0]] = i[1]
|
||||
return hash
|
||||
Reference in new issue
Block a user