mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-24 03:32:58 +03:00
style: Format some files (#33)
This commit is contained in:
parent
98e0837174
commit
6ec3093801
@ -130,4 +130,4 @@
|
||||
"lint": "eslint ./src --ext .ts",
|
||||
"format": "prettier --write ."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ import { uniqWith } from './uniqWith';
|
||||
* @param {T[]} arr - The array to process.
|
||||
* @param {(item: T) => U} converter - The function used to convert the array elements.
|
||||
* @returns {T[]} A new array containing only the unique elements from the original array, based on the values returned by the converter function.
|
||||
*
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
* uniqBy([1.2, 1.5, 2.1, 3.2, 5.7, 5.3, 7.19], Math.floor);
|
||||
|
@ -6,7 +6,7 @@
|
||||
* @param {T[]} arr - The array to process.
|
||||
* @param {(item1: T, item2: T) => boolean} areItemsEqual - The function used to compare the array elements.
|
||||
* @returns {T[]} A new array containing only the unique elements from the original array, based on the values returned by the comparator function.
|
||||
*
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
* uniqWith([1.2, 1.5, 2.1, 3.2, 5.7, 5.3, 7.19], (a, b) => Math.abs(a - b) < 1);
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { defineConfig } from 'tsup'
|
||||
import { defineConfig } from 'tsup';
|
||||
|
||||
export default defineConfig({
|
||||
format: ['cjs', 'esm'],
|
||||
@ -6,4 +6,4 @@ export default defineConfig({
|
||||
sourcemap: true,
|
||||
dts: true,
|
||||
clean: true,
|
||||
})
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user