NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #778 most downloaded on npm
Flatten nested arrays
Last release 7 years ago
no release in 18 months
Release timing varies
gaps range from 2 months to 1.9 years
Most releases are documented
notes for 9 of 12 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
12 releases · first in 2014
Better TypeScript support for array flattening
Added
Changed
exports.flattenRemoved
flatten, prefer performance and smaller codedepth version of functions, if you know the depth it's better to use something like Array#flat or flatten helpers explicitly in code - you typically don't need anything between 1 and infinity in every day codeUse ReadonlyArray for TypeScript interface to improve type assignability
Fixed
ReadonlyArray for TypeScript interface to improve type assignabilityOne column per quarter.
Fix the TypeScript definition return type for depth functions
Changed
depth functionsAdd TypeScript definition to project
Added
Add TypeError validation to methods
Changed
TypeError validation to methodsflatten, flattenFrom, flattenDepth and flattenFromDepthAdded - Perf: 'use strict'
Added
'use strict'Execute flatten without depth via dedicated code (not depth(Infinity)) to improve performance
Added
flatten without depth via dedicated code (not depth(Infinity)) to improve performanceRemove potential code paths by removing depth === 1 behavior
Fixed
depth === 1 behaviorUpdated documentation in README
Added
files needed for packageNothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →