mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-24 03:32:58 +03:00
chore: Move isArray to our compatibility library
This commit is contained in:
parent
fb51b98732
commit
e49c82b0fe
@ -150,7 +150,7 @@ function sidebar(): DefaultTheme.Sidebar {
|
||||
{
|
||||
text: 'Predicates',
|
||||
items: [
|
||||
{ text: 'isArray', link: '/reference/predicate/isArray' },
|
||||
{ text: 'isArray (compat)', link: '/reference/compat/predicate/isArray' },
|
||||
{ text: 'isEqual', link: '/reference/predicate/isEqual' },
|
||||
{ text: 'isLength', link: '/reference/predicate/isLength' },
|
||||
{ text: 'isPlainObject', link: '/reference/predicate/isPlainObject' },
|
||||
|
@ -161,7 +161,7 @@ function sidebar(): DefaultTheme.Sidebar {
|
||||
{
|
||||
text: '타입 가드',
|
||||
items: [
|
||||
{ text: 'isArray', link: '/ko/reference/predicate/isArray' },
|
||||
{ text: 'isArray (호환성)', link: '/ko/reference/compat/predicate/isArray' },
|
||||
{ text: 'isEqual', link: '/ko/reference/predicate/isEqual' },
|
||||
{ text: 'isLength', link: '/ko/reference/predicate/isLength' },
|
||||
{ text: 'isPlainObject', link: '/ko/reference/predicate/isPlainObject' },
|
||||
|
@ -146,7 +146,7 @@ function sidebar(): DefaultTheme.Sidebar {
|
||||
{
|
||||
text: '谓词',
|
||||
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: 'isLength', link: '/zh_hans/reference/predicate/isLength' },
|
||||
{ text: 'isPlainObject', link: '/zh_hans/reference/predicate/isPlainObject' },
|
||||
|
@ -34,6 +34,7 @@ export { get } from './object/get.ts';
|
||||
export { set } from './object/set.ts';
|
||||
|
||||
export { isPlainObject } from './predicate/isPlainObject.ts';
|
||||
export { isArray } from './predicate/isArray.ts';
|
||||
|
||||
export { startsWith } from './string/startsWith.ts';
|
||||
export { endsWith } from './string/endsWith.ts';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { describe, expect, expectTypeOf, it } from 'vitest';
|
||||
import { isArray } from './isArray';
|
||||
import { isArray } from '../compat/predicate/isArray';
|
||||
|
||||
describe('isArray', function () {
|
||||
it('returns true if value is an array', () => {
|
@ -5,4 +5,3 @@ export { isNull } from './isNull.ts';
|
||||
export { isUndefined } from './isUndefined.ts';
|
||||
export { isLength } from './isLength.ts';
|
||||
export { isPlainObject } from './isPlainObject.ts';
|
||||
export { isArray } from './isArray.ts';
|
||||
|
Loading…
Reference in New Issue
Block a user