firewalk
Version:
A collection traversal library for Firestore
17 lines • 625 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isTraverser = isTraverser;
function isTraverser(candidate) {
const t = candidate;
return (!!t &&
typeof t === 'object' &&
t.traversable !== null &&
typeof t.traversable === 'object' &&
t.traversalConfig !== null &&
typeof t.traversalConfig === 'object' &&
typeof t.withConfig === 'function' &&
typeof t.withExitEarlyPredicate === 'function' &&
typeof t.traverseEach === 'function' &&
typeof t.traverse === 'function');
}
//# sourceMappingURL=isTraverser.js.map