How to use es6-shim - 4 common examples

To help you get started, we’ve selected a few es6-shim 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 ServiceStackApps / typescript-redux / src / TypeScriptRedux / src / deps.tsx View on Github external
/// 

//build bundle with: jspm bundle src/deps deps.lib.js

import * as React from 'react';
import { render } from 'react-dom';
import { createStore } from 'redux';
import { connect } from 'react-redux';
import * as ES6 from 'es6-shim';

import 'jquery';
import 'ss-utils';

var a = ES6.Object.assign({});
var store = createStore((state, action) => state, {});

class Deps extends React.Component {
    render() {
        return <div>Hello, World!</div>;  
    }
}

var DepsRedux = connect((state) =&gt; ({}), (dispatch) =&gt; ({}))(Deps);

const ignore = () =&gt; render(, document.body);
github ServiceStack / Admin / src / ServiceStack.Admin.WebHost / src / deps.tsx View on Github external
/// 

//build bundle with: jspm bundle src/deps deps.lib.js

import * as React from 'react';
import { render } from 'react-dom';
import { createStore } from 'redux';
import { connect } from 'react-redux';
import { Router, Route, Link } from 'react-router';
import * as ES6 from 'es6-shim';

import 'jquery';
import 'ss-utils';

var a = ES6.Object.assign({});
var store = createStore((state, action) =&gt; state, {});

class Deps extends React.Component {
    render() {
        return <div>Hello, World!</div>;
    }
}

var DepsRedux = connect((state) =&gt; ({}), (dispatch) =&gt; ({}))(Deps);

const ignore = () =&gt; render(, document.body);

var ignoreRoute = ();
github nathan-rice / radical / src / radical.ts View on Github external
execute(parameters?: IEndpointExecutionParameters) {
        var request = new XMLHttpRequest(),
            url = this.url,
            data = "",
            endpoint = this;
        return new Promise((resolve, reject) =&gt; {
            if (parameters) {
                if (parameters.arguments) {
                    url = this.url + "?" + this.toQueryString(parameters.arguments);
                }
                request.onload = function () {
                    if (this.status &gt;= 200 &amp;&amp; this.status &lt; 400) {
                        if (parameters.success) parameters.success(endpoint.responseParser(this.response), this.status);
                        resolve(this.response);
                    } else {
                        if (parameters.error) parameters.error(endpoint.errorParser(this.response), this.status);
                        reject(this.response);
                    }
                };
                if (parameters.data) {
                    data = this.body.converter(parameters.data);
                }
github pokemongo-dev-contrib / pokemongo-json-pokedex / src / core / writer.ts View on Github external
public Write(): Promise {
        let promise = new Promise((resolve, reject) =&gt; {
            fs.writeFile(this.outputPath, JSON.stringify(this.parser.Parse(this.gameMaster), null, 4), err =&gt; {
                if (err) {
                    reject(err);
                }
                resolve();
            });
        });
        return promise;
    };
}

es6-shim

ECMAScript 6 (Harmony) compatibility shims for legacy JavaScript engines

MIT
Latest version published 2 years ago

Package Health Score

76 / 100
Full package analysis

Popular es6-shim functions