Giter Site home page Giter Site logo

raptor-polyfill's Introduction

RaptorJS

RaptorJS is an End-to-End JavaScript Toolkit for Building Adaptive Modules and UI Components. Visit http://raptorjs.org/ for more details.

raptor-polyfill's People

Contributors

austinkelleher avatar patrick-steele-idem avatar

Watchers

 avatar  avatar  avatar

raptor-polyfill's Issues

Support Object.assign

Support for the Object.assign method would be useful. Here is a link to the MDN page. According to the compatibility table its a relatively new feature. A polyfill function is also included on that page.

forEach function checks for string instead of checking for function

I think the typeof statement should be typeof func !== 'function', right?

Array.prototype.forEach = function forEach(fun /*, thisp*/) {
        var self = toObject(this),
            thisp = arguments[1],
            i = -1,
            length = self.length >>> 0;

        // If no callback function or if callback is not a callable function
        if (typeof func !== 'string') {
            throw new TypeError(); // TODO message
        }

https://github.com/raptorjs3/raptor-polyfill/blob/master/array/forEach.js#L8-L17

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.