mirror of https://github.com/status-im/consul.git
11 lines
209 B
JavaScript
11 lines
209 B
JavaScript
|
import { helper } from '@ember/component/helper';
|
||
|
|
||
|
export function last([obj = ''], hash) {
|
||
|
switch (true) {
|
||
|
case typeof obj === 'string':
|
||
|
return obj.substr(-1);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default helper(last);
|