Code & Deploy
siGit Code
Git Hosting
Toggle menu
siGit Code
Git Hosting
Sign in
Sign in
@devries-cameron20
/
t3code-1
Fork
0
The best way to control Claude Code, Codex and more from any computer or phone
t3code-1
/
.repos
/
effect
/
ai-docs
/
src
/
10_predicate
/
01_basics.ts
Code
Commits
Issues
Pulls
Cloud Agent
CICD
main
main
ts
14 lines
227 Bytes
Copy permalink
Copy
Raw
1
/**
2
* @title Using the Predicate module
3
*/
4
import
{
Predicate
}
from
"
effect
"
5
6
const
thing
:
unknown
=
{
7
a
:
1
8
}
9
10
if
(
Predicate
.
isObject
(
thing
))
{
11
if
(
Predicate
.
isNumber
(
thing
.
a
))
{
12
console
.
log
(
"
number
"
,
thing
.
a
)
13
}
14
}