How to use the @babel/runtime-corejs3/helpers/esm/typeof function in @babel/runtime-corejs3

To help you get started, we’ve selected a few @babel/runtime-corejs3 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Aymkdn / SharepointPlus / es5 / main.js View on Github external
value: function init(params) {
      var _this = this;

      if (_typeof(params) === "object") {
        var _loop = function _loop(key) {
          if (key === "list") {
            _this[key] = function () {
              for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                args[_key] = arguments[_key];
              }

              _this.queue = [{
                fct: params[key],
                args: args
              }];
              return _this;
            };
          } else {
            // when we need '$SP().list()'
            switch (key) {
github LianjiaTech / fee / sdk / lib / utils.js View on Github external
if (code < 10000 || code > 19999) {
      return 'type:product的log code 应该在10000~19999之间';
    }
  } else if (type === 'info') {
    if (code < 20000 || code > 29999) {
      return 'type:info的log code 应该在20000~29999之间';
    }
  } // 字端段类型校验


  if (_typeof(detail) !== 'object') {
    return 'second argument detail required object';
  } // 字端段类型校验


  if (_typeof(extra) !== 'object') {
    return 'third argument extra required object';
  } // 字段校验


  var ruleItem = rule[code];

  if (ruleItem) {
    // 消费字段必填
    var requireFields = _toConsumableArray(ruleItem.df);

    var realFields = _Object$keys(detail);

    var needFields = [];

    _forEachInstanceProperty(requireFields).call(requireFields, function (field) {
      // 缺字端
github LianjiaTech / fee / sdk / lib / utils.js View on Github external
if (type === 'error') {
    if (code < 0 || code > 9999) {
      return 'type:error的log code 应该在1~9999之间';
    }
  } else if (type === 'product') {
    if (code < 10000 || code > 19999) {
      return 'type:product的log code 应该在10000~19999之间';
    }
  } else if (type === 'info') {
    if (code < 20000 || code > 29999) {
      return 'type:info的log code 应该在20000~29999之间';
    }
  } // 字端段类型校验


  if (_typeof(detail) !== 'object') {
    return 'second argument detail required object';
  } // 字端段类型校验


  if (_typeof(extra) !== 'object') {
    return 'third argument extra required object';
  } // 字段校验


  var ruleItem = rule[code];

  if (ruleItem) {
    // 消费字段必填
    var requireFields = _toConsumableArray(ruleItem.df);

    var realFields = _Object$keys(detail);
github LianjiaTech / fee / sdk / lib / utils.js View on Github external
export function isObject(value) {
  var type = _typeof(value);

  return value != null && (type == 'object' || type == 'function');
}
/**
github LianjiaTech / fee / sdk / lib / utils.js View on Github external
export var isDom = function isDom(target) {
  return typeof HTMLElement === 'function' ? target instanceof HTMLElement : target && _typeof(target) === 'object' && target.nodeType === 1 && typeof target.nodeName === 'string';
};
export var noop = function noop() {};