add hasFeature util method

This commit is contained in:
Sebastian McKenzie 2015-09-15 06:18:23 +01:00
parent 40aab69ed0
commit d1ecb04d0f

View File

@ -25,6 +25,10 @@ export default class Parser extends Tokenizer {
} }
} }
hasFeature(name) {
return !!this.options.features[name];
}
extend(name, f) { extend(name, f) {
this[name] = f(this[name]); this[name] = f(this[name]);
} }