Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- checkQuery = function (query) {
- if (!query) {
- query = {};
- } else if (typeof query === 'string' || query instanceof String) {
- query = {
- _id: query
- }
- }
- return query;
- };
- checkOptions = function (options) {
- if (!options) {
- options = {};
- }
- return options;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement