JSPM

substr-polyfill

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 51
  • Score
    100M100P100Q61036F
  • License MIT

Modular polyfill for substr(-1) for IE browsers. Respectfully modified from MDN and added to a module.

Package Exports

  • substr-polyfill

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (substr-polyfill) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

substr-polyfill

Modular polyfill for substr(-1) for IE browsers.

Credit goes to MDN for the polyfill code and to mulllhausen for a bugfix. This repo is here so npm and bower can include it easily.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr

Bower Install

bower install substr-polyfill

Use -S to save to bower.json

bower install -S substr-polyfill

NPM Install

npm install substr-polyfill

To save to package.json

npm install substr-polyfill --save