Last active
December 27, 2015 11:09
-
-
Save capaj/7316565 to your computer and use it in GitHub Desktop.
just test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var forbidden = ['mongooseCollection', '_collection']; | |
module.exports = function (query) { | |
var copy = {}; | |
for (var prop in query) { | |
if (forbidden.indexOf(prop) === -1) { | |
copy[prop] = query[prop]; | |
} | |
} | |
return JSON.stringify(copy); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment