Socket
Socket
Sign inDemoInstall

array-includes

Package Overview
Dependencies
65
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0 to 3.0.1

4

CHANGELOG.md

@@ -0,1 +1,5 @@

3.0.1 / 2015-05-23
=================
* [Fix] in "shim", assign the polyfill, not the implementation
3.0.0 / 2015-05-23

@@ -2,0 +6,0 @@ =================

5

package.json
{
"name": "array-includes",
"version": "3.0.0",
"version": "3.0.1",
"author": "Jordan Harband",

@@ -32,3 +32,4 @@ "description": "A spec-compliant `Array.prototype.includes` shim/polyfill/replacement that works as far down as ES3.",

"contains",
"Array.prototype.contains"
"Array.prototype.contains",
"es-shim API"
],

@@ -35,0 +36,0 @@ "dependencies": {

@@ -15,3 +15,3 @@ #array-includes <sup>[![Version Badge][npm-version-svg]][package-url]</sup>

This package implements the [es-shim API](https://github/com/es-shims/api) interface. It works in an ES3-supported environment and complies with the proposed [spec](http://www.ecma-international.org/ecma-262/6.0/).
This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the proposed [spec](http://www.ecma-international.org/ecma-262/6.0/).

@@ -18,0 +18,0 @@ Because `Array.prototype.includes` depends on a receiver (the “this” value), the main export takes the array to operate on as the first argument.

'use strict';
var define = require('define-properties');
var implementation = require('./implementation');
var getPolyfill = require('./polyfill');

@@ -10,5 +9,5 @@

if (Array.prototype.includes !== polyfill) {
define(Array.prototype, { includes: implementation });
define(Array.prototype, { includes: polyfill });
}
return polyfill;
};
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc