mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-24 11:45:26 +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',
|
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' },
|
||||||
|
@ -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' },
|
||||||
|
@ -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' },
|
||||||
|
@ -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';
|
||||||
|
@ -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', () => {
|
@ -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';
|
|
||||||
|
Loading…
Reference in New Issue
Block a user