@vect/vector-mapper
Advanced tools
Comparing version 0.0.25 to 0.0.26
@@ -11,7 +11,7 @@ 'use strict'; | ||
const mapper = (vec, fn, l) => { | ||
const mapper = function (vec, fn, l) { | ||
l = l || vec && vec.length; | ||
const ar = Array(l); | ||
for (--l; l >= 0; l--) ar[l] = fn.call(undefined, vec[l], l); | ||
for (--l; l >= 0; l--) ar[l] = fn.call(this, vec[l], l); | ||
@@ -18,0 +18,0 @@ return ar; |
@@ -7,7 +7,7 @@ const iterate = function (vec, fn, l) { | ||
const mapper = (vec, fn, l) => { | ||
const mapper = function (vec, fn, l) { | ||
l = l || vec && vec.length; | ||
const ar = Array(l); | ||
for (--l; l >= 0; l--) ar[l] = fn.call(undefined, vec[l], l); | ||
for (--l; l >= 0; l--) ar[l] = fn.call(this, vec[l], l); | ||
@@ -14,0 +14,0 @@ return ar; |
{ | ||
"name": "@vect/vector-mapper", | ||
"version": "0.0.25", | ||
"version": "0.0.26", | ||
"description": "A debugging tool", | ||
@@ -33,3 +33,3 @@ "main": "dist/index.cjs.js", | ||
"homepage": "https://github.com/hoyeungw/vect#readme", | ||
"gitHead": "8c6ddf6bb50856583cdc81f29000f6303217f5da" | ||
"gitHead": "1e44271c5142bc2106301fbe51681701809dee8b" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4513