Skip to content

Commit

Permalink
move @deprecated tag up a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Aug 16, 2024
1 parent 622eca3 commit e507f46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/array/flat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
* Given an array of arrays, returns a single dimensional array with
* all items in it.
*
* @deprecated Use [Array.prototype.flat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flat) instead.
*
* @see https://radashi-org.github.io/reference/array/flat
* @example
* ```ts
* flat([[1, 2], [[3], 4], [5]])
* // [1, 2, [3], 4, 5]
* ```
*
* @deprecated Use [Array.prototype.flat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flat) instead.
*/
export function flat<T>(lists: readonly T[][]): T[] {
return lists.flat()
Expand Down

0 comments on commit e507f46

Please sign in to comment.