# Code coverage report for modules/isDisposable.js

## Statements: 100% (5 / 5) Branches: 100% (2 / 2) Functions: 100% (1 / 1) Lines: 100% (5 / 5) Ignored: none

All files » modules/ » isDisposable.js

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11

    1
    1

    1
    40

    1
     'use strict';

    exports.__esModule = true;
    exports['default'] = isDisposable;

    function isDisposable(obj) {
      return Boolean(obj && typeof obj.dispose === 'function');
    }

    module.exports = exports['default'];
    //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9kYW4vRG9jdW1lbnRzL1Byb2plY3RzL2Rpc3Bvc2FibGVzL21vZHVsZXMvaXNEaXNwb3NhYmxlLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztxQkFBd0IsWUFBWTs7QUFBckIsU0FBUyxZQUFZLENBQUMsR0FBRyxFQUFFO0FBQ3hDLFNBQU8sT0FBTyxDQUFDLEdBQUcsSUFBSSxPQUFPLEdBQUcsQ0FBQyxPQUFPLEtBQUssVUFBVSxDQUFDLENBQUM7Q0FDMUQiLCJmaWxlIjoiL1VzZXJzL2Rhbi9Eb2N1bWVudHMvUHJvamVjdHMvZGlzcG9zYWJsZXMvbW9kdWxlcy9pc0Rpc3Bvc2FibGUuanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBpc0Rpc3Bvc2FibGUob2JqKSB7XG4gIHJldHVybiBCb29sZWFuKG9iaiAmJiB0eXBlb2Ygb2JqLmRpc3Bvc2UgPT09ICdmdW5jdGlvbicpO1xufSJdfQ==