extra-array
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -0,3 +1,9 @@ | ||
/** | ||
* Gets first element of array. | ||
* @param {array} x array | ||
*/ | ||
function head(x) { | ||
return x[0]; | ||
} | ||
/** | ||
@@ -34,4 +40,5 @@ * Returns corresponding values from n arrays. | ||
} | ||
Array.head = head; | ||
Array.zip = zip; | ||
Array.zipWith = zipWith; | ||
module.exports = Array; |
{ | ||
"name": "extra-array", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Standard utility methods for Array.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
19847
472