UI for Zipcoin Blue

util.js 314B

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