How to use the es6-object-assign.polyfill function in es6-object-assign

To help you get started, we’ve selected a few es6-object-assign 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 shakee93 / vue-toasted / src / js / toast.js View on Github external
import show from './show';
import animations from './animations';
const uuid = require('shortid');

// add Object.assign Polyfill
require('es6-object-assign').polyfill();

/**
 * Toast
 * core instance of toast
 *
 * @param _options
 * @returns {Toasted}
 * @constructor
 */
export const Toasted = function (_options) {

	/**
	 * Unique id of the toast
	 */
	this.id = uuid.generate();
github TurtleRover / tcs / client / src / vendors / vex / js / vex.js View on Github external
},{}],4:[function(require,module,exports){
// classList polyfill for old browsers
require('classlist-polyfill')
// Object.assign polyfill
require('es6-object-assign').polyfill()

// String to DOM function
var domify = require('domify')

// Use the DOM's HTML parsing to escape any dangerous strings
var escapeHtml = function escapeHtml (str) {
  if (typeof str !== 'undefined') {
    var div = document.createElement('div')
    div.appendChild(document.createTextNode(str))
    return div.innerHTML
  } else {
    return ''
  }
}

// Utility function to add space-delimited class strings to a DOM element's classList
github contently / videojs-annotation-comments / src / js / lib / polyfills.js View on Github external
/*
    Collection of polyfills neededf or IE10+ support
*/

// Array.prototype.find() for IE10+
require('ie-array-find-polyfill');
// Object.assign for IE10+
require('es6-object-assign').polyfill();

// Allow use of object.constructor.staticFunc() in IE
// Not yet supported by babel
// https://gist.github.com/edoardocavazza/47246856759f2273e48b
(function () {
    if (typeof Object.setPrototypeOf === 'undefined' && typeof Object.getOwnPropertyNames === 'function') {
        var _exclude = ['length', 'name', 'arguments', 'caller', 'prototype'];

        function bindFunction(ctx, fn) {
            return function() {
                return fn.apply(this, arguments);
            }
        }

        function bindProperty(ctx, prop, parentDescriptor) {
            if (!parentDescriptor) {
github man-group / dtale / static / polyfills.js View on Github external
require("babel-polyfill");
require("es6-object-assign").polyfill();
require("es6-promise").polyfill();

require("string.prototype.startswith");
github adamrenklint / bap / lib / Effect.js View on Github external
require('es6-object-assign').polyfill();

var Model = require('./Model');
var numberInRangeType = require('./types/numberInRange');

var Tuna = require('tunajs');
var tuna;

module.exports = Model.extend({

  type: 'effect',

  props: {
    bypass: ['boolean', true, false],
    nodes: ['object', true, function () { return {}; }]
  },
github jordanstephens / kepler.js / lib / param-helper.js View on Github external
require("es6-object-assign").polyfill();

var intersect = require("intersect"),
    arrayIsEqual = require("array-equal"),
    constants = require("./constants");

var ParamHelper = {};

module.exports = ParamHelper;

var MINIMUM_PARAM_SETS = [
  ["semimajorAxis", "eccentricity"],
  ["semilatusRectum", "eccentricity"],
  ["apogee", "perigee"]
];

var DEFAULT_PARAMS = {
github dnnsoftware / Dnn.Platform / Library / src / Modules / UI / Dnn.PersonaBar.UI / admin / personaBar / Bundle.Web / src / main.jsx View on Github external
import ReactModal from "react-modal";
import ReactTooltip from "react-tooltip";
import * as CommonComponents from "./dnn-common-components";
import * as ReduxDevTools from "redux-devtools";
import ReduxDevToolsDockMonitor from "redux-devtools-dock-monitor";
import ReduxDevToolsLogMonitor from "redux-devtools-log-monitor";
import ReduxImmutableStateInvariant from "redux-immutable-state-invariant";
import ReduxThunk from "redux-thunk";
import Moment from "moment";
import ReactWidgets from "react-widgets";
import ThrottleDebounce from "throttle-debounce";
import Promise from "es6-promise";
import PersonaBarComponents from "./components/persona-bar-components";

/** Polyfills */
require("es6-object-assign").polyfill();
require("array.prototype.find").shim();
require("array.prototype.findindex").shim();
if (!window.dnn) {
    window.dnn = {};
}
if (!window.dnn.nodeModules) {
    window.dnn.nodeModules = {};
}

window.dnn.nodeModules.React = React;
window.dnn.nodeModules.Redux = Redux;
window.dnn.nodeModules.ReactMount = ReactMount;
window.dnn.nodeModules.ReactRedux = ReactRedux;
window.dnn.nodeModules.ReactDOM = ReactDOM;
window.dnn.nodeModules.ReactTabs = ReactTabs;
window.dnn.nodeModules.ReactTooltip = ReactTooltip;
github sheinsight / shineout / site / utils / polyfill / index.js View on Github external
import Promise from 'promise'
import objectAssign from 'es6-object-assign'

if (!window.Promise) window.Promise = Promise

objectAssign.polyfill()
github justinkames / vuejs-logger / src / index.ts View on Github external
import ObjectAssign from "es6-object-assign";
ObjectAssign.polyfill();
import VueLogger from "./vue-logger/vue-logger";
export default VueLogger;
github adamrenklint / bap / lib / Params.js View on Github external
require('es6-object-assign').polyfill();

var Model = require('./Model');
var triggerParams = require('./mixins/triggerParams');
var volumeParams = require('./mixins/volumeParams');
var oscillatorParams = require('./mixins/oscillatorParams');
var sampleParams = require('./mixins/sampleParams');
var numberInRangeType = require('./types/numberInRange');
var bypassable = require('./mixins/bypassable');
var memoize = require('meemo');

var prime = null;

var Params = Model.extend(triggerParams, volumeParams, oscillatorParams, sampleParams, bypassable, {
  type: 'params',

  props: {

es6-object-assign

ECMAScript 2015 (ES6) Object.assign polyfill and ponyfill

MIT
Latest version published 8 years ago

Package Health Score

67 / 100
Full package analysis

Popular es6-object-assign functions