Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 446 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 446 Bytes

FlattenArray Project

Flatten an array of arbitrarily nested arrays of values into a flat array of values

Usage

// import flattenArray from './flattenArray'
const flattenArray = require('./flattenArray')
flattenArray([[1,2,[3]],4]) // [1, 2, 3 , 4]

Test

Tests are realized with Mocha and Chai.

  1. Download or checkout the project
  2. Open index.html in your browser