mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-28 20:26:33 +03:00
b11fd69e17
* feat(isString): Add isString function * test(isString): Add isString tests * docs(isString): Add and improve docs for isString * Update src/compat/predicate/isString.spec.ts * Update src/compat/predicate/isString.spec.ts * Update src/predicate/index.ts --------- Co-authored-by: Sojin Park <raon0211@gmail.com>
20 lines
490 B
TypeScript
20 lines
490 B
TypeScript
import { bench, describe } from 'vitest';
|
|
import { isString as isStringToolkit } from 'es-toolkit';
|
|
import { isString as isStringLodash } from 'lodash';
|
|
|
|
describe('isString', () => {
|
|
bench('es-toolkit/isString', () => {
|
|
isStringToolkit('');
|
|
isStringToolkit(true);
|
|
isStringToolkit(undefined);
|
|
isStringToolkit(123);
|
|
});
|
|
|
|
bench('lodash/isString', () => {
|
|
isStringLodash('');
|
|
isStringLodash(true);
|
|
isStringLodash(undefined);
|
|
isStringLodash(123);
|
|
});
|
|
});
|