Module-documentation

version 1.0.0
module: polyfills version 0.0.2
size-min gzipped: 2.51 kb (incl. dependencies: kb)
dependencies: -
maintanance: Marco Asbreuk
home


all modules

Polyfills for older browsers

Small set of polyfills, only those who are used by the ITSA modules.

Getting Started

With nodejs:

The module polyfills is a typical browser-module.

In the browser:

For browser-usage, ITSA has a predefined loaderfiles. Once included, a global ITSA object with default features is available. For customized loaderfiles, read: Customized build.

<script src="/itsabuild-min.js"></script>
<script>
    
</script>
When using your own customized build-file, this module-requirement needs to be invoked with the window-object.

The Basics

The polyfills that are defined work with feature-detect, so they won;t overwrite methods that are available and will work with browsers onther than IE8 who also lack these features. However, it are mostly ES5-features, so IE8 and below will probably be those who get fixed.

polyfill-base.js

custom require: var IO = require('polyfill/polyfill-base.js');
size-min gzipped: 2.51 - 1,59 = 0.92 kb
dependencies: -

Array.isArray

Array.forEach

Array.indexOf

Array.some

Array.filter

Object.create

Object.defineProperty

polyfill

The full version of the module consists of polyfill-base.js and the folowing polyfills:

JSON.stringify

JSON.parse

API Docs