You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

util.js 314B

12345678910111213141516
  1. 'use strict';
  2. module.exports = {
  3. isString: function(arg) {
  4. return typeof(arg) === 'string';
  5. },
  6. isObject: function(arg) {
  7. return typeof(arg) === 'object' && arg !== null;
  8. },
  9. isNull: function(arg) {
  10. return arg === null;
  11. },
  12. isNullOrUndefined: function(arg) {
  13. return arg == null;
  14. }
  15. };