See [morph-chop](https://github.com/jofftiquez/vue-morphling/blob/master/src/filters/chop/index.js) from vue-morph.