Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

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. };