lib/common/misc.js
function checkId(id) {
  id = id || "";
  id = id.toString();
  return _.isString(id) && id.length === 24;
}
function checkId(id) {
  id = id || "";
  id = id.toString();
  return _.isString(id) && id.length === 24;
}
function checkId ( id ) { id = id || "" ; id = id . toString ( ) ; return _ . isString ( id ) && id . length === 24 ; }
Checking Mongo ID Param
Checking Mongo ID Param