UNPKG
@livy/util
Version:
latest (1.0.6)
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Common utilities for the Livy logger
github.com/loilo/livy/tree/master/packages/util
loilo/livy
@livy/util
/
lib
/
handlers
/
is-closable-handler-interface.mjs
11 lines
(10 loc)
•
276 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
/** * Check whether a value implements the ClosableHandlerInterface * *
@param
value The value to check */
export
function
isClosableHandlerInterface
(
value
) {
return
(
typeof
value ===
'object'
&& value !==
null
&&
typeof
value.
close
===
'function'
); }