Skip to content

GeoEngineers/es5-basic-shim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published