Skip to content

Commit d33074b

Browse files
committed
fix: move isPositive and isNegative to numbers
1 parent 6e092a8 commit d33074b

File tree

10 files changed

+15
-15
lines changed

10 files changed

+15
-15
lines changed

docs/pages/guard/_meta.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,5 @@
1111
"is-promise": "isPromise",
1212
"is-set": "isSet",
1313
"is-string": "isString",
14-
"is-truthy": "isTruthy",
15-
"is-positive": "isPositive",
16-
"is-negative": "isNegative"
14+
"is-truthy": "isTruthy"
1715
}

docs/pages/number/_meta.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
"divide": "divide",
44
"fallback-number": "fallbackNumber",
55
"is-in-range": "isInRange",
6+
"is-negative": "isNegative",
7+
"is-positive": "isPositive",
68
"percent": "percent",
79
"random-int": "randomInt",
810
"to-decimal": "toDecimal"

docs/pages/guard/is-negative.mdx renamed to docs/pages/number/is-negative.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ function isNegative(n: number): boolean {};
1717
### Examples
1818

1919
```typescript copy
20-
isNegative(-0.1) // true
21-
isNegative(-1) // true
22-
isNegative(-10) // true
23-
isNegative(1) // false
24-
isNegative(0) // false
20+
isNegative(-0.1) // true
21+
isNegative(-1) // true
22+
isNegative(-10) // true
23+
isNegative(1) // false
24+
isNegative(0) // false
2525
```

docs/pages/guard/is-positive.mdx renamed to docs/pages/number/is-positive.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ function isPositive(n: number): boolean {};
1717
### Examples
1818

1919
```typescript copy
20-
isPositive(0.1) // true
21-
isPositive(1) // true
22-
isPositive(10) // true
23-
isPositive(-1) // false
24-
isPositive(0) // false
20+
isPositive(0.1) // true
21+
isPositive(1) // true
22+
isPositive(10) // true
23+
isPositive(-1) // false
24+
isPositive(0) // false
2525
```

src/guards/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@ export { isEmptyObject } from './isEmptyObject.ts';
33
export { isFunction } from './isFunction.ts';
44
export { isIterable } from './isIterable.ts';
55
export { isMap } from './isMap.ts';
6-
export { isNegative } from './isNegative.ts';
76
export { isNotNull } from './isNotNull.ts';
87
export { isNull } from './isNull.ts';
98
export { isObject } from './isObject.ts';
109
export { isPlainObject } from './isPlainObject.ts';
11-
export { isPositive } from './isPositive.ts';
1210
export { isPromise } from './isPromise.ts';
1311
export { isSet } from './isSet.ts';
1412
export { isString } from './isString.ts';

src/number/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ export { clamp } from './clamp.ts';
22
export { divide } from './divide.ts';
33
export { fallbackNumber } from './fallbackNumber.ts';
44
export { isInRange } from './isInRange.ts';
5+
export { isNegative } from './isNegative.ts';
6+
export { isPositive } from './isPositive.ts';
57
export { percent } from './percent.ts';
68
export { randomInt } from './randomInt.ts';
79
export { toDecimal } from './toDecimal.ts';
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)