Dashboard sipadu mbip
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

1234567891011121314151617181920212223242526
  1. 'use strict';
  2. var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
  3. module.exports = {
  4. /**
  5. * @returns {boolean}
  6. */
  7. isArray: function isArray(item) {
  8. return Array.isArray(item);
  9. },
  10. /**
  11. * @returns {boolean}
  12. */
  13. isObject: function isObject(item) {
  14. return (typeof item === 'undefined' ? 'undefined' : _typeof(item)) === 'object' && item !== null;
  15. },
  16. /**
  17. * @returns {boolean}
  18. */
  19. isFunction: function isFunction(item) {
  20. return typeof item === 'function';
  21. }
  22. };