arr-flatten
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "arr-flatten", | ||
"version": "0.1.0", | ||
"version": "0.2.1", | ||
"main": [ | ||
@@ -5,0 +5,0 @@ "index.js" |
@@ -10,7 +10,7 @@ /*! | ||
module.exports = function (arr) { | ||
return flatten(arr, []); | ||
module.exports = function flatten(arr) { | ||
return flat(arr, []); | ||
}; | ||
function flatten(arr, res) { | ||
function flat(arr, res) { | ||
var len = arr.length; | ||
@@ -23,3 +23,3 @@ var num = 0; | ||
if (Array.isArray(arr[i])) { | ||
flatten(arr[i], res); | ||
flat(arr[i], res); | ||
} else { | ||
@@ -26,0 +26,0 @@ res.push(arr[i]); |
{ | ||
"name": "arr-flatten", | ||
"description": "Recursively flatten an array or arrays. This is the fastest implementation of array flatten.", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"homepage": "https://github.com/jonschlinkert/arr-flatten", | ||
@@ -6,0 +6,0 @@ "author": { |
# arr-flatten [![NPM version](https://badge.fury.io/js/arr-flatten.svg)](http://badge.fury.io/js/arr-flatten) | ||
> Recursively flatten an array or arrays. This is the fastest implementation of array flatten. | ||
@@ -55,2 +54,2 @@ | ||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on October 28, 2014._ | ||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on November 09, 2014._ |
Sorry, the diff of this file is not supported yet
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
0
6146
11
45
54