style: Format some files (#33)

This commit is contained in:
Jonghyeon Ko 2024-06-12 11:35:49 +09:00 committed by GitHub
parent 98e0837174
commit 6ec3093801
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View File

@ -130,4 +130,4 @@
"lint": "eslint ./src --ext .ts",
"format": "prettier --write ."
}
}
}

View File

@ -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);

View File

@ -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);

View File

@ -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,
})
});