@truck/doubly-linked-list
Version:
A JavaScript implementation of the Doubly Linked-List data structure
19 lines (14 loc) • 456 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var Node = function Node(value) {
_classCallCheck(this, Node);
this.next = undefined;
this.previous = undefined;
this.value = value;
};
var _default = Node;
exports.default = _default;