Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mdn-polyfills

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mdn-polyfills

MDN polyfills

  • 5.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Polyfills copy-pasted from MDN Build Status npm

MDN polyfills. A collection of side-effect ECMAScript modules. Minimized, mangled and extremally small thanks to Rollup - next-generation ES6 module bundler.

Installation

npm i mdn-polyfills --save

Polyfills

Object.assign

import 'mdn-polyfills/Object.assign'; // 330 bytes

Object.create

import 'mdn-polyfills/Object.create'; // 328 bytes

Array.prototype.find

import 'mdn-polyfills/Array.prototype.find'; // 358 bytes

Array.from

import 'mdn-polyfills/Array.from'; // 840 bytes

Array.prototype.forEach

import 'mdn-polyfills/Array.prototype.forEach'; // 356 bytes

Array.prototype.filter

import 'mdn-polyfills/Array.prototype.filter'; // 344 bytes

Array.prototype.findIndex

import 'mdn-polyfills/Array.prototype.findIndex'; // 390 bytes

Array.prototype.includes

import 'mdn-polyfills/Array.prototype.includes'; // 380 bytes

Array.of

import 'mdn-polyfills/Array.of'; // 107 bytes

String.prototype.includes

import 'mdn-polyfills/String.prototype.includes'; // 181 bytes

String.prototype.repeat

import 'mdn-polyfills/String.prototype.repeat'; // 532 bytes

String.prototype.startsWith

import 'mdn-polyfills/String.prototype.startsWith'; // 145 bytes

Function.prototype.bind

import 'mdn-polyfills/Function.prototype.bind'; // 455 bytes

NodeList.prototype.forEach

import 'mdn-polyfills/NodeList.prototype.forEach'; // 186 bytes

Element.prototype.closest

import 'mdn-polyfills/Element.prototype.closest'; // 269 bytes

Element.prototype.matches

import 'mdn-polyfills/Element.prototype.matches'; // 161 bytes

License

MIT © Michał Jezierski

Keywords

FAQs

Package last updated on 07 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc