UNPKG

compromise

Version:
22 lines (18 loc) 443 B
import { find, strip } from './fns.js' const api = function (View) { class Quotations extends View { constructor(document, pointer, groups) { super(document, pointer, groups) this.viewType = 'Possessives' } strip() { return strip(this) } } View.prototype.quotations = function (n) { let m = find(this) m = m.getNth(n) return new Quotations(m.document, m.pointer) } } export default api