Advertisement
Guest User

Untitled

a guest
Jul 25th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. checkQuery = function (query) {
  2. if (!query) {
  3. query = {};
  4. } else if (typeof query === 'string' || query instanceof String) {
  5. query = {
  6. _id: query
  7. }
  8. }
  9. return query;
  10. };
  11.  
  12. checkOptions = function (options) {
  13. if (!options) {
  14. options = {};
  15. }
  16. return options;
  17. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement