@extendscript/aes.patch.array.isarray
Advanced tools
+11
| /* | ||
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray | ||
| */ | ||
| if (!Array.isArray) { | ||
| Array.isArray = function(arg) { | ||
| if (arg === void 0 || arg === null) { | ||
| return false; | ||
| }; | ||
| return (arg.__class__ === 'Array'); | ||
| }; | ||
| }; |
+3
-3
| { | ||
| "name": "@extendscript/aes.patch.array.isarray", | ||
| "version": "1.0.0", | ||
| "version": "2.0.0", | ||
| "description": "The `isArray()` method determines whether the passed value is an Array.", | ||
| "main": "array.isarray.js", | ||
| "main": "isarray.js", | ||
| "scripts": { | ||
@@ -31,4 +31,4 @@ "node-env": "curl https://raw.githubusercontent.com/ES-Collection/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh", | ||
| "minimist": "^1.2.0", | ||
| "tap-es": "git+https://github.com/ExtendScript/tap-es.git" | ||
| "@extendscript/tap-es": ">=1.0.5" | ||
| } | ||
| } |
+4
-0
@@ -9,2 +9,6 @@ # array.isarray | ||
| ## Install | ||
| npm install @extendscript/aes.patch.array.isarray | ||
| ## Test | ||
@@ -11,0 +15,0 @@ |
+1
-1
| var argv = require('minimist')(process.argv.slice(2)); // Remove nodePath, scriptpath | ||
| var tapes = require("tap-es"), targets = argv._, d = require('path').resolve(__dirname); | ||
| var tapes = require("@extendscript/tap-es"), targets = argv._, d = require('path').resolve(__dirname); | ||
@@ -4,0 +4,0 @@ tapes.reportDuration(false); |
+1
-1
@@ -1,2 +0,2 @@ | ||
| #include '../array.isarray.js' | ||
| #include '../isarray.js' | ||
@@ -3,0 +3,0 @@ var testData = { |
| /* | ||
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray | ||
| */ | ||
| if (!Array.isArray) { | ||
| Array.isArray = function(arg) { | ||
| if (arg === void 0 || arg === null) { | ||
| return false; | ||
| }; | ||
| return (arg.__class__ === 'Array'); | ||
| }; | ||
| }; |
2892
1.54%20
25%