How to use @babel/runtime-corejs2 - 6 common examples

To help you get started, we’ve selected a few @babel/runtime-corejs2 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 bueltge / addquicktag / js / add-quicktag-gutenberg.js View on Github external
var tags = addquicktag_tags['buttons'];
var _window$wp$element = window.wp.element,
    createElement = _window$wp$element.createElement,
    Fragment = _window$wp$element.Fragment;
var _window$wp$richText = window.wp.richText,
    registerFormatType = _window$wp$richText.registerFormatType,
    unregisterFormatType = _window$wp$richText.unregisterFormatType,
    toggleFormat = _window$wp$richText.toggleFormat;
var __ = window.wp.i18n.__;
var _window$wp$editor = window.wp.editor,
    RichTextToolbarButton = _window$wp$editor.RichTextToolbarButton,
    RichTextShortcut = _window$wp$editor.RichTextShortcut;

for (var i = 0; i < tags.length; i++) {
  // check each tag for active on this post type
  if (1 === _parseInt(tags[i][addquicktag_post_type])) {
    (function () {
      console.log(tags[i]);

      if (typeof tags[i].title === 'undefined') {
        tags[i].title = ' ';
      }

      if (typeof tags[i].end === 'undefined') {
        tags[i].end = '';
      }

      if (typeof tags[i].access === 'undefined') {
        tags[i].access = '';
      }

      var name = html_entity_decode(tags[i].text).replace(/["\\]/gi, "").toLowerCase();
github ashleyw / react-sane-contenteditable / lib / esm / utils.js View on Github external
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
github ashleyw / react-sane-contenteditable / lib / esm / utils.js View on Github external
function reduceTargetKeys() {
  var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  var predicate = arguments.length > 1 ? arguments[1] : undefined;
  return _Object$keys(target).reduce(predicate, {});
}
github ashleyw / react-sane-contenteditable / lib / esm / utils.js View on Github external
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors) { _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } } return target; }
github ashleyw / react-sane-contenteditable / lib / esm / utils.js View on Github external
return reduceTargetKeys(target, function (acc, key) {
    if (keys.some(function (omitKey) {
      return omitKey === key;
    })) {
      return acc;
    } else {
      return _objectSpread({}, acc, _defineProperty({}, key, target[key]));
    }
  });
}
github swagger-api / swagger-js / src / specmap / lib / index.js View on Github external
function isGenerator(thing) {
  return regenerator.isGeneratorFunction(thing)
}