Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork19
Releases: blakeembrey/array-flatten
Releases · blakeembrey/array-flatten
Simplify Package
Added
- Better TypeScript support for array flattening
Changed
- Added ES2015 distributable and renamed primary export to
exports.flatten
Removed
- Removed array type checked entry to
flatten, prefer performance and smaller code - Removed
depthversion of functions, if you know the depth it's better to use something likeArray#flatorflattenhelpers explicitly in code - you typically don't need anything between 1 and infinity in every day code
Assets2
Uh oh!
There was an error while loading.Please reload this page.
Readonly TypeScript Array
Fixed
- Use
ReadonlyArrayfor TypeScript interface to improve type assignability
Assets2
Uh oh!
There was an error while loading.Please reload this page.
TypeScript Improvements
Changed
- Fix the TypeScript definition return type for
depthfunctions
Assets2
Uh oh!
There was an error while loading.Please reload this page.
TypeScript Definition
Added
- Add TypeScript definition to project
Assets2
Uh oh!
There was an error while loading.Please reload this page.
Method Error Handling
Changed
- Add
TypeErrorvalidation to methods - Split function into four methods -
flatten,flattenFrom,flattenDepthandflattenFromDepth
Assets2
Uh oh!
There was an error while loading.Please reload this page.
Use Strict
Added
- Perf:
'use strict'
Assets2
Uh oh!
There was an error while loading.Please reload this page.
Improved Code Path Performance
Added
- Execute
flattenwithout depth via dedicated code (notdepth(Infinity)) to improve performance
Assets2
Uh oh!
There was an error while loading.Please reload this page.
Remove Depth 1 Code Path
Fixed
- Remove potential code paths by removing
depth === 1behavior
Assets2
Uh oh!
There was an error while loading.Please reload this page.
Updated Documentation
Added
- Updated documentation in README
- Ship on
filesneeded for package
Assets2
Uh oh!
There was an error while loading.Please reload this page.
Initial Release as V1
v1.0.01.0.0
Assets2
Uh oh!
There was an error while loading.Please reload this page.