UNPKG

@zohodesk/components

Version:

Dot UI is a customizable React component library built to deliver a clean, accessible, and developer-friendly UI experience. It offers a growing set of reusable components designed to align with modern design systems and streamline application development

19 lines (15 loc) 447 B
const exports = {}; let types = 'Array Object String Date RegExp Function Boolean Number Null Undefined'.split(' '); let type = function () { return Object.prototype.toString.call(this).slice(8, -1); }; for (let i = types.length; i--;) { /*eslint-disable */ exports['is' + types[i]] = function (self) { return function (elem) { return type.call(elem) === self; }; }(types[i]); } /*eslint-enable */ export default exports;