A basic set of ECMAScript 5 shim methods for older browsers
JavaScript CoffeeScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
src/es5-basic
.npmignore
Cakefile
LICENSE
README.md
package.json

README.md

ES5-Basic

This library provides some basic shim methods to make older browsers more ECMAScript 5 compatible. For newer browsers, the built-in methods will be used.

Contents

  • Function.prototype.bind
  • Array.isArray
  • Array.prototype.forEach
  • Array.prototype.map
  • Array.prototype.filter
  • Array.prototype.every
  • Array.prototype.some
  • Array.prototype.reduce
  • Array.prototype.reduceRight
  • Array.prototype.indexOf
  • Array.prototype.lastIndexOf
  • Object.keys
  • Date.now
  • Date.prototype.toISOString
  • Date.prototype.toJSON
  • String.prototype.trim

Acknowledgements

This module is modeled after the great es5-shim module. If you're looking for a shim module that has greater completeness at the cost of larger code size go for es5-shim.