Added projection in query API

This commit is contained in:
Zaid Abdulla committed 2013-03-22 13:06:27 +03:00
1 parent cc68d3b62e
commit c3eb8c157d
2 files changed
+17 -1

No files matched your search

+4
View File
@@ -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