UNPKG

@zohodesk/components

Version:

In this Package, we Provide Some Basic Components to Build Web App

26 lines (21 loc) 592 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _exports = {}; var types = 'Array Object String Date RegExp Function Boolean Number Null Undefined'.split(' '); var type = function type() { return Object.prototype.toString.call(this).slice(8, -1); }; for (var i = types.length; i--;) { /*eslint-disable */ _exports['is' + types[i]] = function (self) { return function (elem) { return type.call(elem) === self; }; }(types[i]); } /*eslint-enable */ var _default = _exports; exports["default"] = _default;