Added projection in query API
This commit is contained in:
1 parent
cc68d3b62e
commit
c3eb8c157d
2 files changed
+17
-1
No files matched your search
@@ -15,6 +15,10 @@ exports.endsWith = (str, suffix) ->
|
||||
str.indexOf(suffix, str.length - suffix.length) isnt -1
|
||||
|
||||
|
||||
exports.startsWith = (str, prefix) ->
|
||||
str.substring(0, prefix.length) == prefix
|
||||
|
||||
|
||||
exports.arrayToHash = (arr) ->
|
||||
hash = {}
|
||||
for i in arr
|
||||
|
||||
Reference in new issue
Block a user