just-flatten-it
return a flattened array
Last updated 3 years ago by angus-c .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install just-flatten-it 
SYNC missed versions from official npm registry.

just-flatten-it

Part of a library of zero-dependency npm modules that do just do one thing. Guilt-free utilities for every occasion.

???? Try it

npm install just-flatten-it
yarn add just-flatten-it

Return a flattened array

import flatten from 'just-flatten-it';

flatten([[1, [2, 3]], [[4, 5], 6, 7, [8, 9]]]);
// [1, 2, 3, 4, 5, 6, 7, 8, 9]

flatten([[1, [2, 3]], [[4, 5], 6, 7, [8, 9]]], 1);
// [1, [2, 3], [[4, 5], 6, 7, [8, 9]]]

Current Tags

  • 5.2.0                                ...           latest (3 years ago)

24 Versions

  • 5.2.0                                ...           3 years ago
  • 5.1.2                                ...           4 years ago
  • 5.1.1                                ...           4 years ago
  • 5.1.0                                ...           4 years ago
  • 5.0.1                                ...           4 years ago
  • 5.0.0                                ...           4 years ago
  • 4.2.1                                ...           4 years ago
  • 4.2.0                                ...           4 years ago
  • 4.1.0                                ...           4 years ago
  • 4.0.0                                ...           4 years ago
  • 3.2.0                                ...           5 years ago
  • 3.1.0                                ...           5 years ago
  • 3.0.0                                ...           5 years ago
  • 2.2.1                                ...           5 years ago
  • 2.2.0                                ...           5 years ago
  • 2.1.0                                ...           8 years ago
  • 2.0.0                                ...           9 years ago
  • 1.1.23                                ...           10 years ago
  • 1.1.22                                ...           10 years ago
  • 1.1.21                                ...           10 years ago
  • 1.1.20                                ...           10 years ago
  • 1.1.19                                ...           10 years ago
  • 1.1.18                                ...           10 years ago
  • 1.1.17                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |