array-includes
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -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 @@ ================= |
{ | ||
"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; | ||
}; |
23184
241