Skip to content

Commit

Permalink
docs: add common category
Browse files Browse the repository at this point in the history
  • Loading branch information
Thanga-Ganapathy committed Mar 15, 2024
1 parent fd1f980 commit e2c01c0
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions apps/docs/pages/Common/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"isEmpty": "isEmpty",
"isNil": "isNil"
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Callout } from "nextra/components";
import REPL from "../../components/REPL";

> Checks if the given value is empty.
> Checks if the given collection is empty.
<Callout type="info">
The following type of values are supported:
Expand Down
File renamed without changes.
2 changes: 0 additions & 2 deletions apps/docs/pages/Object/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@
"mergeAll": "mergeAll",
"shallowMerge": "shallowMerge",
"shallowMergeAll": "shallowMergeAll",
"isEmpty": "isEmpty",
"isNil": "isNil",
"size": "size"
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import size from './size';
import size from '../object/size';

/**
* Checks if the given value is empty.
* Checks if the given collection is empty.
*
* @example
*
Expand Down
File renamed without changes.
6 changes: 4 additions & 2 deletions packages/utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,16 @@ export { default as setInObj } from './object/setInObj';
export { default as delInObj } from './object/delInObj';
export { default as clone } from './object/clone';
export { default as isShallowEql } from './object/isShallowEql';
export { default as isEmpty } from './object/isEmpty';
export { default as isNil } from './object/isNil';
export { default as size } from './object/size';
export { default as merge } from './object/merge';
export { default as mergeAll } from './object/mergeAll';
export { default as shallowMerge } from './object/shallowMerge';
export { default as shallowMergeAll } from './object/shallowMergeAll';

// Common
export { default as isEmpty } from './common/isEmpty';
export { default as isNil } from './common/isNil';

// function
export { default as sleep } from './function/sleep';
export { default as noop } from './function/noop';
Expand Down

0 comments on commit e2c01c0

Please sign in to comment.