1.0.6 • Published 12 years ago

es5-basic-shim v1.0.6

Weekly downloads
2
License
-
Repository
-
Last release
12 years ago

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
1.0.6

12 years ago

1.0.1

12 years ago

1.0.0

12 years ago