Socket
Socket
Sign inDemoInstall

arr-flatten

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.2.1

2

bower.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc