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
/
is-resettable-interface.mjs
11 lines
(10 loc)
•
266 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
/** * Check whether a value implements the ResettableInterface * *
@param
value The value to check */
export
function
isResettableInterface
(
value
) {
return
(
typeof
value ===
'object'
&& value !==
null
&&
typeof
value.
reset
===
'function'
); }