es5-basic

0.2.1 • Public • Published

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.

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i es5-basic

    Weekly Downloads

    34

    Version

    0.2.1

    License

    none

    Last publish

    Collaborators

    • amccollum