UNPKG

@produck/json-index-archive

Version:

18 lines (13 loc) 268 B
const EXTENSION = Symbol('extension'); export class AbstractNode { [EXTENSION] = null; get extension() { return this[EXTENSION]; } constructor(extension = null) { this[EXTENSION] = extension; } static isNode(value) { return value instanceof this; } }