UNPKG
cli-legend
Version:
latest (1.0.0)
1.0.0
"A fun command-line rogurelike dungeon game"
github.com/SamparkBhol/roguemaze
SamparkBhol/roguemaze
cli-legend
/
RogueMaze
/
node_modules
/
rxjs
/
src
/
internal
/
util
/
isScheduler.ts
7 lines
(5 loc)
•
206 B
text/typescript
View Raw
1
2
3
4
5
6
7
import
{
SchedulerLike
}
from
'../types'
;
import
{ isFunction }
from
'./isFunction'
;
export
function
isScheduler
(
value: any
): value is
SchedulerLike
{
return
value &&
isFunction
(value.
schedule
); }