add hasFeature util method

This commit is contained in:
Sebastian McKenzie 2015-09-15 06:18:23 +01:00
parent c31d2afc7f
commit 25aa6da989

View File

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