@mathigon/core
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -510,4 +510,4 @@ 'use strict'; | ||
function loop(array) { | ||
let i = -1; | ||
return function() { i = (i + 1) % array.length; return array[i]; }; | ||
let i = 0; | ||
return () => array[(i++) % array.length]; | ||
} | ||
@@ -514,0 +514,0 @@ |
{ | ||
"name": "@mathigon/core", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "JavaScript utilities library containing function wrappers, string and array helper functions, type checking and event classes.", | ||
@@ -28,6 +28,6 @@ "keywords": [ | ||
"devDependencies": { | ||
"eslint": "^4.1.1", | ||
"rollup": "^0.58.1", | ||
"tape": "^4.9.0" | ||
"eslint": "^5.4.0", | ||
"rollup": "^0.64.1", | ||
"tape": "^4.9.1" | ||
} | ||
} |
@@ -180,4 +180,4 @@ // ============================================================================= | ||
export function loop(array) { | ||
let i = -1; | ||
return function() { i = (i + 1) % array.length; return array[i]; }; | ||
let i = 0; | ||
return () => array[(i++) % array.length]; | ||
} | ||
@@ -184,0 +184,0 @@ |
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
45890