# flatit **Repository Path**: mirrors_floatdrop/flatit ## Basic Information - **Project Name**: flatit - **Description**: Another flatten implementation for arrays - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-05-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # flatit [![Build Status][travis-image]][travis-url] Another implementation of array flatterization. Works recursivly down every nested array. ## Usage ```js var flat = require('flatit'); flat([]); // [] flat([1,2,3,4,5]); // [1,2,3,4,5] flat([1,2,3,[],4,5]); // [1,2,3,4,5] flat([1,2,3,[4,[5],6],7,8]); // [1,2,3,4,5,6,7,8] ``` ## API ### flat(array) Returns flattened array. ## Benchmarks Run `npm run bench` to test it yourself. # License MIT (c) 2014 Vsevolod Strukchinsky (floatdrop@gmail.com) [npm-url]: https://npmjs.org/package/flatit [npm-image]: http://img.shields.io/npm/v/flatit.svg [travis-url]: https://travis-ci.org/floatdrop/flatit [travis-image]: http://img.shields.io/travis/floatdrop/flatit.svg [depstat-url]: https://david-dm.org/floatdrop/flatit [depstat-image]: https://david-dm.org/floatdrop/flatit.svg?theme=shields.io