mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 13:26:07 +00:00
191496e4a5
* Create substr helper * Create a test for the new substr helper * Display the last 8 characters of token Accessor ID in the Token lists page
6 lines
168 B
JavaScript
6 lines
168 B
JavaScript
import { helper } from '@ember/component/helper';
|
|
|
|
export default helper(function substr([str = '', start = 0, length], hash) {
|
|
return str.substr(start, length);
|
|
});
|