diff --git a/docs/.vitepress/en.mts b/docs/.vitepress/en.mts index bb1a833a..e4eaa05e 100644 --- a/docs/.vitepress/en.mts +++ b/docs/.vitepress/en.mts @@ -59,6 +59,8 @@ function sidebar(): DefaultTheme.Sidebar { { text: 'intersection', link: '/reference/array/intersection' }, { text: 'intersectionBy', link: '/reference/array/intersectionBy' }, { text: 'intersectionWith', link: '/reference/array/intersectionWith' }, + { text: 'minBy', link: '/reference/array/minBy' }, + { text: 'maxBy', link: '/reference/array/maxBy' }, { text: 'partition', link: '/reference/array/partition' }, { text: 'sample', link: '/reference/array/sample' }, { text: 'shuffle', link: '/reference/array/shuffle' }, diff --git a/docs/reference/math/maxBy.md b/docs/reference/array/maxBy.md similarity index 100% rename from docs/reference/math/maxBy.md rename to docs/reference/array/maxBy.md diff --git a/docs/reference/math/minBy.md b/docs/reference/array/minBy.md similarity index 100% rename from docs/reference/math/minBy.md rename to docs/reference/array/minBy.md diff --git a/src/array/index.ts b/src/array/index.ts index 0c1c1d42..9b9c47fa 100644 --- a/src/array/index.ts +++ b/src/array/index.ts @@ -10,6 +10,8 @@ export { groupBy } from './groupBy'; export { intersection } from './intersection'; export { intersectionBy } from './intersectionBy'; export { intersectionWith } from './intersectionWith'; +export { maxBy } from './maxBy'; +export { minBy } from './minBy'; export { partition } from './partition'; export { sample } from './sample'; export { shuffle } from './shuffle'; diff --git a/src/math/maxBy.spec.ts b/src/array/maxBy.spec.ts similarity index 100% rename from src/math/maxBy.spec.ts rename to src/array/maxBy.spec.ts diff --git a/src/math/maxBy.ts b/src/array/maxBy.ts similarity index 100% rename from src/math/maxBy.ts rename to src/array/maxBy.ts diff --git a/src/math/minBy.spec.ts b/src/array/minBy.spec.ts similarity index 100% rename from src/math/minBy.spec.ts rename to src/array/minBy.spec.ts diff --git a/src/math/minBy.ts b/src/array/minBy.ts similarity index 100% rename from src/math/minBy.ts rename to src/array/minBy.ts diff --git a/src/math/index.ts b/src/math/index.ts index 9448647c..5b643448 100644 --- a/src/math/index.ts +++ b/src/math/index.ts @@ -3,6 +3,4 @@ export { random } from './random'; export { randomInt } from './randomInt'; export { round } from './round'; export { sum } from './sum'; -export { maxBy } from './maxBy'; -export { minBy } from './minBy'; export { range } from './range';