@nullvoxpopuli/ember-composable-helpers
Version:
Composable helpers for Ember
15 lines (12 loc) • 348 B
JavaScript
import { helper } from '@ember/component/helper';
import { isEmpty } from '@ember/utils';
import asArray from '../utils/as-array.js';
function map([callback, array]) {
if (isEmpty(callback)) {
return [];
}
return asArray(array).map(callback);
}
var map$1 = helper(map);
export { map$1 as default, map };
//# sourceMappingURL=map.js.map