extra-array
Advanced tools
Comparing version 2.0.9 to 2.0.10
22
fresh.js
@@ -0,1 +1,4 @@ | ||
// PURE FUNCTIONS | ||
// - behave like math functions | ||
// - dont manipulate input arrays | ||
/** | ||
@@ -87,2 +90,20 @@ * Gets first element of array. | ||
} | ||
// IMPURE FUNCTIONS | ||
// - dont behave like math functions | ||
// - manipulate input arrays | ||
/** | ||
* Appends arrays to end to input array! | ||
* @param {array} x input array | ||
* @param {...array} ys arrays to append | ||
* @returns input array (modified!) | ||
*/ | ||
function append(x, ...ys) { | ||
for(var y of ys) | ||
Array.prototype.push.apply(x, y); | ||
return x; | ||
} | ||
exports.head = head; | ||
@@ -95,1 +116,2 @@ exports.last = last; | ||
exports.zip = zip; | ||
exports.append = append; |
{ | ||
"name": "extra-array", | ||
"version": "2.0.9", | ||
"version": "2.0.10", | ||
"description": "Standard utility methods for Array.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -6,3 +6,3 @@ cons | ||
remove | ||
xor | ||
@@ -9,0 +9,0 @@ xorBy |
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
21416
537