es5-basic-shim

1.0.6 • Public • Published

Basic ES5 shim for older browsers.

Contains shims for the following objects:

  • Function
  • String
  • Object
  • Array

If any of the shimmed methods exist in the environment, they are not replaced.

Function

Shim to Function.bind

String

Shim to String.trim

Object

Shim to Object.keys and Object.create. For Object.create, only the first param is considered, that is, the prototype of the object to be created. Propeties descriptors are not parsed.

Array

Shim to

  • forEach
  • indexOf
  • map
  • filter
  • some
  • every
  • lastIndexOf
  • reduce
  • reduceRight
  • Array.isArray

/es5-basic-shim/

    Package Sidebar

    Install

    npm i es5-basic-shim

    Weekly Downloads

    3

    Version

    1.0.6

    License

    none

    Last publish

    Collaborators

    • radubrehar