chore: Move isArray to our compatibility library

This commit is contained in:
Sojin Park 2024-07-21 10:38:14 +09:00
parent fb51b98732
commit e49c82b0fe
10 changed files with 5 additions and 5 deletions

View File

@ -150,7 +150,7 @@ function sidebar(): DefaultTheme.Sidebar {
{ {
text: 'Predicates', text: 'Predicates',
items: [ items: [
{ text: 'isArray', link: '/reference/predicate/isArray' }, { text: 'isArray (compat)', link: '/reference/compat/predicate/isArray' },
{ text: 'isEqual', link: '/reference/predicate/isEqual' }, { text: 'isEqual', link: '/reference/predicate/isEqual' },
{ text: 'isLength', link: '/reference/predicate/isLength' }, { text: 'isLength', link: '/reference/predicate/isLength' },
{ text: 'isPlainObject', link: '/reference/predicate/isPlainObject' }, { text: 'isPlainObject', link: '/reference/predicate/isPlainObject' },

View File

@ -161,7 +161,7 @@ function sidebar(): DefaultTheme.Sidebar {
{ {
text: '타입 가드', text: '타입 가드',
items: [ items: [
{ text: 'isArray', link: '/ko/reference/predicate/isArray' }, { text: 'isArray (호환성)', link: '/ko/reference/compat/predicate/isArray' },
{ text: 'isEqual', link: '/ko/reference/predicate/isEqual' }, { text: 'isEqual', link: '/ko/reference/predicate/isEqual' },
{ text: 'isLength', link: '/ko/reference/predicate/isLength' }, { text: 'isLength', link: '/ko/reference/predicate/isLength' },
{ text: 'isPlainObject', link: '/ko/reference/predicate/isPlainObject' }, { text: 'isPlainObject', link: '/ko/reference/predicate/isPlainObject' },

View File

@ -146,7 +146,7 @@ function sidebar(): DefaultTheme.Sidebar {
{ {
text: '谓词', text: '谓词',
items: [ items: [
{ text: 'isArray', link: '/zh_hans/reference/predicate/isArray' }, { text: 'isArray (兼容性)', link: '/zh_hans/reference/compat/predicate/isArray' },
{ text: 'isEqual', link: '/zh_hans/reference/predicate/isEqual' }, { text: 'isEqual', link: '/zh_hans/reference/predicate/isEqual' },
{ text: 'isLength', link: '/zh_hans/reference/predicate/isLength' }, { text: 'isLength', link: '/zh_hans/reference/predicate/isLength' },
{ text: 'isPlainObject', link: '/zh_hans/reference/predicate/isPlainObject' }, { text: 'isPlainObject', link: '/zh_hans/reference/predicate/isPlainObject' },

View File

@ -34,6 +34,7 @@ export { get } from './object/get.ts';
export { set } from './object/set.ts'; export { set } from './object/set.ts';
export { isPlainObject } from './predicate/isPlainObject.ts'; export { isPlainObject } from './predicate/isPlainObject.ts';
export { isArray } from './predicate/isArray.ts';
export { startsWith } from './string/startsWith.ts'; export { startsWith } from './string/startsWith.ts';
export { endsWith } from './string/endsWith.ts'; export { endsWith } from './string/endsWith.ts';

View File

@ -1,5 +1,5 @@
import { describe, expect, expectTypeOf, it } from 'vitest'; import { describe, expect, expectTypeOf, it } from 'vitest';
import { isArray } from './isArray'; import { isArray } from '../compat/predicate/isArray';
describe('isArray', function () { describe('isArray', function () {
it('returns true if value is an array', () => { it('returns true if value is an array', () => {

View File

@ -5,4 +5,3 @@ export { isNull } from './isNull.ts';
export { isUndefined } from './isUndefined.ts'; export { isUndefined } from './isUndefined.ts';
export { isLength } from './isLength.ts'; export { isLength } from './isLength.ts';
export { isPlainObject } from './isPlainObject.ts'; export { isPlainObject } from './isPlainObject.ts';
export { isArray } from './isArray.ts';