How to use the ember-cli-string-helpers/helpers/truncate.truncate function in ember-cli-string-helpers

To help you get started, we’ve selected a few ember-cli-string-helpers examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github adiwg / mdEditor / app / pods / components / md-title / component.js View on Github external
return this.routeHierarchy.reduce((val, itm) => {
      return val + truncate([itm.title, 28, true]) + (itm.isTail ? '' :
        ' | ');
    }, '');
  }),

ember-cli-string-helpers

String helpers for Ember

MIT
Latest version published 3 years ago

Package Health Score

53 / 100
Full package analysis