+9
| var arrayOf = require('./'); | ||
| if (!Array.of) { | ||
| Object.defineProperty(Array, 'of', { | ||
| value: arrayOf, | ||
| configurable: true, | ||
| writable: true | ||
| }); | ||
| } |
+2
-14
| (function(root, arrayOf) { | ||
| if (typeof exports !== 'undefined') { | ||
| if (typeof module !== 'undefined' && module.exports) { | ||
| if (typeof module !== 'undefined' && module.exports) { | ||
| exports = module.exports = arrayOf; | ||
| } | ||
| module.exports = arrayOf; | ||
| exports.arrayOf = arrayOf; | ||
| } else if (typeof define === 'function' && define.amd) { | ||
@@ -19,10 +15,2 @@ | ||
| if (!Array.of) { | ||
| Object.defineProperty(Array, 'of', { | ||
| value: arrayOf, | ||
| configurable: true, | ||
| writable: true | ||
| }); | ||
| } | ||
| })(this, function () { | ||
@@ -29,0 +17,0 @@ |
+1
-1
| { | ||
| "name": "array-of", | ||
| "version": "1.0.1", | ||
| "version": "1.1.0", | ||
| "description": "Polyfill for Array.of", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+1
-1
@@ -21,3 +21,3 @@ # array-of [](https://travis-ci.org/1000ch/array-of) | ||
| ```javascript | ||
| require('array-of'); | ||
| require('array-of/shim'); | ||
@@ -24,0 +24,0 @@ console.log(Array.of(4, 5, 6)); |
9
12.5%3049
-2.31%54
-3.57%