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.

16 lines
314 B

4 years ago
  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. };